plutil -convert json /System/Library/Frameworks/CoreText.framework/Versions/A/Resources/StyleNames.loctable -o ~/temp.plist
jq . ~/temp.plist > ~/temp.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew install hammerspoon | |
| mkdir -v ~/.hammerspoon | |
| tee -a ~/.hammerspoon/init.lua << EOF | |
| hs.grid.setGrid('10x4') -- Tip: 鍵位其實就是鍵盤 | |
| hs.hotkey.bind({ "cmd" }, "r", function() | |
| -- 善用快截鍵 | |
| hs.grid.show() | |
| end) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://www.unicode.org/Public/15.1.0/ucd/Blocks.txt | |
| var UnicodeRanges = [][]*unicode.Range{ | |
| {{Name: "Basic Latin", Start: 0x0000, End: 0x007F}}, // 0 | |
| {{"Latin-1 Supplement", 0x0080, 0x00FF}}, // 1 | |
| {{"Latin Extended-A", 0x0100, 0x017F}}, // 2 | |
| {{"Latin Extended-B", 0x0180, 0x024F}}, // 3 | |
| { // 4 | |
| {"IPA Extensions", 0x0250, 0x02AF}, | |
| {"Phonetic Extensions", 0x1D00, 0x1D7F}, | |
| {"Phonetic Extensions Supplement", 0x1D80, 0x1DBF}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package os2 | |
| import "fmt" | |
| type CodePage struct { | |
| Bit uint8 | |
| Value int32 | |
| Desc string | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- 定義一個函數來開啟互動式 terminal 並捕捉 stdout | |
| local function open_interactive_terminal() | |
| -- 用來儲存 stdout 的結果 | |
| local output = {} | |
| -- 開啟新窗口並啟動 terminal | |
| vim.cmd('new') | |
| local buf = vim.api.nvim_get_current_buf() | |
| -- 使用 termopen 開啟一個互動式 terminal | |
| local job_id = vim.fn.termopen(vim.o.shell, { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git rev-list HEAD --count # 1722 | |
| git log --oneline --since="2025-03-20" --reverse | head -n 1 | |
| # 40b3136 | |
| echo "1722 - 1367" | bc | |
| # 355 | |
| git clone file://$(realpath ..) --depth=355 --no-checkout ~/Downloads/temp/test-git/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- USAGE: | |
| -- CSV_PATH=temp.csv lua5.1 read_csv.lua | |
| local csv_path = os.getenv("CSV_PATH") or "your_file.csv" | |
| local file = io.open(csv_path, "r") | |
| if not file then | |
| print("無法打開文件: " .. csv_path) | |
| return | |
| end |
If you don't have the ~/.ssh/config file, you can create one yourself and then fill it with the content you need.
You can refer to the video around 0:51
This file is just for simplification. In fact, you can also use:
ssh -i ~/.ssh/my_privK -R 443:localhost:80 v2@connect.ngrok-agent.com http
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| output DVI-D-1 mode 1920x1080@60Hz | |
| output DP-1 mode 1920x1080@60Hz | |
| bindsym $left resize shrink width 200px | |
| bindsym $down resize grow height 200px | |
| bindsym $up resize shrink height 200px | |
| bindsym $right resize grow width 200px | |
| bindsym Left resize shrink width 200px |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module demo-draw-text | |
| go 1.23.0 | |
| require github.com/CarsonSlovoka/go-pkg/v2 v2.4.2-0.20240619074555-8d486f5913b0 |
NewerOlder