Skip to content

Instantly share code, notes, and snippets.

View daipeihust's full-sized avatar
🎯
Focusing

Steve Dai daipeihust

🎯
Focusing
View GitHub Profile
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@CarlLee
CarlLee / punctuation.js
Last active May 30, 2019 12:14
Match punctuation in English/Chinese sentenses
var re = /([\[\]\,.?"\(\)+_*\/\\&\$#^@!%~`<>:;\{\}?,。·!¥……()+{}【】、|《》]|(?!\s)'\s+|\s+'(?!\s))/ig;
content.replace(re, '');