Skip to content

Instantly share code, notes, and snippets.

View code4lala's full-sized avatar

code4lala

View GitHub Profile
# python use system(3) as if c use int system(const char *command); in stdlib.h
def system(cmd, shell=True):
print('>', cmd)
pipe = subprocess.Popen(cmd, shell=shell, stdout=subprocess.PIPE)
pipe.wait()
text = pipe.communicate()[0]
print(text)
print('>', cmd, 'end')
@code4lala
code4lala / npmrc.taobao
Last active April 19, 2022 06:43 — forked from nyaapass/npmrc.taobao
使用淘宝源的 npmrc 配置文件
loglevel=http
progress=false
registry=https://registry.npmmirror.com
sass_binary_site=https://npmmirror.com/mirrors/node-sass/
phantomjs_cdnurl=https://npmmirror.com/mirrors/phantomjs/
electron_mirror=https://npmmirror.com/mirrors/electron/
chromedriver_cdnurl=https://npmmirror.com/mirrors/chromedriver/