All gists

優化你的 Git 配置:添加快捷鍵,提升可讀性,確保個人資訊不入版控。

1 0 0 3
1 # 引入本地個人設定,避免將個資存入版本控制
2 [include]
3 path = ~/.gitconfig.local
4
5 # Git log 的預設顯示設定
6 [log]
7 decorate = short # 顯示簡短的 ref 名稱(例如 HEAD -> main)
8 abbrevCommit = true # 顯示簡短的 commit hash(例如 1a2b3c4)
9
10 # 常用 Git 指令的簡寫別名

自動檢測 macOS 並設置 iTerm2 偏好設定資料夾為自訂路徑。

0 0 0 1
1 #!/bin/sh
2
3 # 取得作業系統類型(例如 Darwin 表示 macOS)
4 system_type=$(uname -s)
5
6 # 如果是 macOS 系統,才執行以下區塊
7 if [ "$system_type" = "Darwin" ]; then
8
9 # 這裡可以考慮加入使用 Homebrew 安裝 iTerm2 的指令(例如 brew install --cask iterm2)
10 # 不過目前尚未實作

使用 ES Module 方式導入 Tabulator.js,不靠打包工具就能打造互動表格,支援排序、欄位配置,超輕巧前端神器 ✨

0 0 0 1
1 <!DOCTYPE html>
2 <html lang="zh-TW">
3 <head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <title>Tabulator ESM 範例</title>
7 <!-- 引入 Tabulator 的 CSS -->
8 <link href="https://unpkg.com/tabulator-tables@6.3.1/dist/css/tabulator.min.css" rel="stylesheet">
9 </head>
10 <body>