Skip to content

Instantly share code, notes, and snippets.

View Roadelse's full-sized avatar

Roadelse Roadelse

  • Zhejiang Lab.
  • Hangzhou, China
  • 15:16 (UTC -12:00)
View GitHub Profile
@scruel
scruel / fix-ms-input-pinyin-phrase.py
Last active July 16, 2025 03:16
修正微软拼音输入法无法添加多个格式化自定义短语的问题,默认添加 sj 和 rq 两个自定义短语
"""
修正微软拼音输入法无法添加多个格式化自定义短语的问题
Author: Scruel Tao
"""
import os
import re
import pathlib
import traceback
from pathlib import Path
@jahands
jahands / Get-DirHash.ps1
Last active November 18, 2024 08:38
Get hash of entire directory in powershell.
Function Get-DirHash {
[Cmdletbinding()]
Param(
[Parameter(Mandatory=$true)]
[ValidateScript({
if(Test-Path -Path $_ -ErrorAction SilentlyContinue)
{
return $true
}
else