Skip to content

Instantly share code, notes, and snippets.

View zhongzichang's full-sized avatar
🏠
Working from home

Zhong ZiChang zhongzichang

🏠
Working from home
View GitHub Profile
function debounce(fn, ms) {
let timer
return _ => {
clearTimeout(timer)
timer = setTimeout(_ => {
timer = null
fn.apply(this, arguments)
}, ms)
};
}
@zhongzichang
zhongzichang / Activate Office 2019 for macOS VoL.md
Created July 26, 2019 14:33 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@zhongzichang
zhongzichang / tmux.md
Created May 5, 2016 15:55 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@zhongzichang
zhongzichang / java_timezones_list
Created March 21, 2016 04:27
java timezones list
(GMT-12:00) Etc/GMT+12
(GMT-11:00) Etc/GMT+11
(GMT-11:00) Pacific/Midway
(GMT-11:00) Pacific/Niue
(GMT-11:00) Pacific/Pago_Pago
(GMT-11:00) Pacific/Samoa
(GMT-11:00) US/Samoa
(GMT-10:00) America/Adak
(GMT-10:00) America/Atka
(GMT-10:00) Etc/GMT+10
@zhongzichang
zhongzichang / arpg_character_properties_eval
Last active March 20, 2016 10:10
ARPG Character Properties Eval
STR = BASIC_STR + (LV - 1) * GU_STR + EQ_STR_SUM
INT = BASIC_STR + (LV - 1) * GU_INT + EQ_INT_SUM
DEX = BASIC_DEX + (LV - 1) * GU_DEX + EQ_DEX_SUM
HP = BASIC_HP + (STR - BASIC_STR) * 18 + EQ_HP_SUM
PA = BASIC_PA + (STR - BASIC_STR) + (DEX - BASIC_DEX) * 0.4 + EQ_PA_SUM
PA = BASIC_PA + (INT - BASIC_INT) + (DEX - BASIC_DEX) * 0.4 + EQ_PA_SUM
PA = BASIC_PA + (DEX - BASIC_DEX) + (DEX - BASIC_DEX) * 0.4 + EQ_PA_SUM
MA = BASIC_MA + (INT - BASIC_INT) * 2.4 + EQ_MA_SUM
PD = BASIC_PD + (STR - BASIC_STR) / 7 + (DEX - BASIC_DEX) / 14 + EQ_PD_SUM
MD = BASIC_MD + (INT - BASIC_INT) / 10 + EQ_MD_SUM
# 一 新建代码库
git init # 在当前目录新建一个Git代码库
git init [project-name] # 新建一个目录,将其初始化为Git代码库
git clone [url] # 下载一个项目和它的整个代码历史
# 二 配置
git config --list
git config -e [--global]
git config [--global] user.name "xxx" # 配置用户名
git config [--global] user.email "xxx@xxx.com" # 配置邮件