Skip to content

Instantly share code, notes, and snippets.

View Shenxiu-WU's full-sized avatar

S.WU Shenxiu-WU

  • columbia university
  • Columbia University, New York
View GitHub Profile
@Shenxiu-WU
Shenxiu-WU / png2jpg.py
Created December 5, 2018 01:53 — forked from qingswu/png2jpg.py
Convert all png images in current folder to jpg using OpenCV cv2
#!/usr/bin/env python
from glob import glob
import cv2
pngs = glob('./*.png')
for j in pngs:
img = cv2.imread(j)
cv2.imwrite(j[:-3] + 'jpg', img)
@Shenxiu-WU
Shenxiu-WU / git_toturial
Last active April 8, 2020 06:47 — forked from guweigang/git_toturial
git命令大全
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "[email protected]" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://[email protected]/VT.git # clone远程仓库