Skip to content

Instantly share code, notes, and snippets.

View zhuziyi1989's full-sized avatar
🍊
Running at top speed ( WeChat: zhuziyi )

zhuziyi zhuziyi1989

🍊
Running at top speed ( WeChat: zhuziyi )
View GitHub Profile
@Tamal
Tamal / git-ssh-error-fix.sh
Last active May 7, 2024 13:50
Solution for 'ssh: connect to host github.com port 22: Connection timed out' error
$ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj
Cloning into 'my-awesome-proj'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
$ # This should also timeout
$ ssh -T git@github.com
ssh: connect to host github.com port 22: Connection timed out
$ # but this might work
@zmmbreeze
zmmbreeze / addChineseUnit.js
Last active December 31, 2021 02:45
为数字加上单位:万或亿
/**
* 为数字加上单位:万或亿
*
* 例如:
* 1000.01 => 1000.01
* 10000 => 1万
* 99000 => 9.9万
* 566000 => 56.6万
* 5660000 => 566万
* 44440000 => 4444万