Skip to content

Instantly share code, notes, and snippets.

@hunandy14
hunandy14 / Install_Gpedit.ps1
Created January 10, 2022 13:18
讓 Windows10/11 Home 家用版 新增 支援 gpedit.msc 本機群組原則編輯器。部落格說明文章 https://bit.ly/3zJJCdF
((Get-ChildItem $env:SystemRoot\servicing\Packages)-match("(Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3)(.*?)(\.mum)|(Microsoft-Windows-GroupPolicy-ClientTools-Package~3)(.*?)(\.mum)")).FullName|ForEach-Object{dism /online /norestart /add-package:$_};gpedit.msc
@hunandy14
hunandy14 / chrome.adm
Created January 10, 2022 11:53
Google Chrome 如何安裝第三方擴充插件。20220110備份檔案,詳細說明請看部落格文章https://bit.ly/31FSFiW
; chrome version: 97.0.4692.71
CLASS MACHINE
CATEGORY !!Google:Cat_Google
CATEGORY !!googlechrome
KEYNAME "Software\Policies\Google\Chrome"
CATEGORY !!GoogleCast_Category
POLICY !!EnableMediaRouter_Policy
#if version >= 4
SUPPORTED !!SUPPORTED_WIN7
@hunandy14
hunandy14 / split_sting.cpp
Created May 22, 2021 17:26
字串切割物件
/*
2021-05-23
部落格說明 https://charlottehong.blogspot.com/2021/05/cc.html
*/
#include <iostream>
#include <vector>
#include <fstream>
#include <string>
using namespace std;
@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>