Skip to content

Instantly share code, notes, and snippets.

@tkambler
tkambler / gist:5222d276f783def5ece8
Last active April 1, 2019 18:02
Displaying Tabular Data in Today Scripts for Yosemite Notification Center
#!/usr/local/bin/node
var Table = require('cli-table');
var table = new Table({
chars: { 'top': '' , 'top-mid': '' , 'top-left': '' , 'top-right': ''
, 'bottom': '' , 'bottom-mid': '' , 'bottom-left': '' , 'bottom-right': ''
, 'left': '' , 'left-mid': '' , 'mid': '' , 'mid-mid': ''
, 'right': '' , 'right-mid': '' , 'middle': ' ' },
style: { 'padding-left': 0, 'padding-right': 0 }

##初始配置

  • git config --global user.name "pockry"
  • git config --global user.email [email protected]

##个人开发

  1. git托管服务上创建repo
  2. git clone
  3. 本地开发
@mba811
mba811 / default.custom.yaml
Last active March 27, 2025 02:44 — forked from lotem/default.custom.yaml
神級輸入法——Rime
# 中西文切換鍵的默認設置寫在 default.yaml 裏面
# 以下的 default.custom.yaml 在全局範圍重定義該組快速鍵
#
# 可用的按鍵有 Caps_Lock, Shift_L, Shift_R, Control_L, control_R
# Mac 系統上的鼠鬚管不能區分左、右,因此只有對 Shift_L, Control_L 的設定起作用
#
# 已輸入編碼時按切換鍵,可以進一步設定輸入法中西文切換的形式。
# 可選的臨時切換策略有三:
# inline_ascii 在輸入法的臨時西文編輯區內輸入字母、數字、符號、空格等,回車上屏後自動復位到中文
# commit_text 已輸入的候選文字上屏並切換至西文輸入模式
@mba811
mba811 / storageusage.sh
Last active August 29, 2015 14:16 — forked from SamRothCA/storageusage.sh
Today Scripts:个性化 Yosemite 通知栏-Storage volume
df -Hl | {
read keys;
keys="${keys%% on}";
while read ${keys//%}; do
echo "`basename "$Mounted"` - $Used/$Size ($Capacity)";
done
}