Skip to content

Instantly share code, notes, and snippets.

@hunandy14
hunandy14 / ReadFile.hpp
Last active May 22, 2021 16:37
C/C++ 依照特定格式 讀取檔案並 切割字串
/*
2021-05-19
詳細的說明可以參考我的部落格
https://charlottehong.blogspot.com/2021/05/cc.html
*/
#pragma
#include <vector>
#include <fstream>
#include <string>
#include <string_view>
@hunandy14
hunandy14 / Out-FileUtf8NoBom.ps1
Created April 26, 2021 14:05 — forked from mklement0/Out-FileUtf8NoBom.ps1
PowerShell function that emulates Out-File for creating UTF-8-encoded files *without a BOM* (byte-order mark).
<#
Prerequisites: PowerShell version 3 or above.
License: MIT
Author: Michael Klement <[email protected]>
DOWNLOAD and DEFINITION OF THE FUNCTION:
irm https://gist.github.com/mklement0/8689b9b5123a9ba11df7214f82a673be/raw/Out-FileUtf8NoBom.ps1 | iex
The above directly defines the function below in your session and offers guidance for making it available in future
0:00:00.000,0:00:01.780
比YA的角度是30度
0:00:01.780,0:00:03.040
大家安安我是 Yukirinu
0:00:03.040,0:00:06.720
今天想來說關於那個令我討厭的女生的事
0:00:06.720,0:00:10.720
@hunandy14
hunandy14 / opencv341_installer.sh
Last active June 29, 2018 12:43
opencv341_installer for Ubuntu 16.04
# opencv331_intaller by charlotte.hong
# this script is on ubuntu 16.04
# date: 2018/05/31
# refrence opencv site: https://docs.opencv.org/3.4.1/d7/d9f/tutorial_linux_install.html
# charlotte.hong blog: https://charlottehong.blogspot.com/
# Update Ubuntu
sudo apt-get update
sudo apt-get dist-upgrade -y
@hunandy14
hunandy14 / PaperlineCTOR.cpp
Created February 26, 2018 04:19
論文換行重建
/*****************************************************************
Name :
Date : 2017/10/23
By : CharlotteHonG
Final: 2017/10/23
*****************************************************************/
//#pragma comment(linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"")
#include <iostream>
#include <fstream>
#include <string>
@hunandy14
hunandy14 / interp_extremum.cpp
Last active January 20, 2018 13:31
特徵點定位 DoG函數
class fpoint
{
public:
fpoint()
{
x = 0.0;
y = 0.0;
};
fpoint(float p_x, float p_y) : x(p_x), y(p_y) {}
~fpoint() {};
@hunandy14
hunandy14 / timer.hpp
Created January 12, 2018 04:09
計時器
/*****************************************************************
Name : Timer.hpp
Date : 2017/12/19
By : CharlotteHonG
Final: 2017/12/19
*****************************************************************/
#pragma once
#include <iostream>
#include <string>
#include <ctime>
@hunandy14
hunandy14 / CudaMem.cuh
Created January 12, 2018 04:08
Cuda記憶體管理
/*****************************************************************
Name :
Date : 2018/01/09
By : CharlotteHonG
Final: 2018/01/09
*****************************************************************/
#pragma once
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
@hunandy14
hunandy14 / BMP_RW.c
Last active March 31, 2022 07:41
讀寫BMP檔案
/*****************************************************************
Name : 讀寫BMP檔案
Date : 2017/11/10
By : CharlotteHonG
Final: 2019/08/07
readME : http://bit.ly/2LTHGWN
site : https://charlottehong.blogspot.com/2017/06/c-raw-bmp.html
*****************************************************************/
#include <stdlib.h>
@hunandy14
hunandy14 / draw_arrow.cpp
Last active November 11, 2017 03:06
畫箭頭
/*****************************************************************
Name : 畫箭頭
Date : 2017/11/09
By : CharlotteHonG
Final: 2017/11/11
*****************************************************************/
#include <iostream>
#include <fstream>
#include <vector>
#include <cmath>