Skip to content

Instantly share code, notes, and snippets.

@erjiang
erjiang / jsoncheck.py
Created March 13, 2012 15:56
jsoncheck
#!/usr/bin/env python
"""jsoncheck checks a list of filenames to see if they are valid json files.
Usage:
jsoncheck file1 [file2 file3 ...]
jsoncheck returns 0 if all files loaded successfully, and 1 otherwise.
"""
import json
@erjiang
erjiang / gist:3fbba5cdf7694c06eacd
Created March 22, 2015 19:14
哈利波特角色
榮恩 罗恩 [Luo2 en1] /Ron/
赫敏 赫敏 [He4 min3] /Hermione (PRC)/
妙麗 妙丽 [Miao4 li4] /Hermione (Tw)/
格蘭傑 格兰杰 [Ge2 lan2 jie3] /Granger (character from Harry Potter)/
斯内普 斯内普 [Si1 nei4 pu3] /Snape (PRC)/
石內卜 石內卜 [Shi2 nei4 bu3] /Snape (Tw)/
葛來分多 葛来分多 [Ge3 lai2 fen1 duo1] /Gryffindor (Tw)/
鄧布利多 邓布利多 [Deng4 bu4 li3 duo1] /Dumbledore (PRC)/
鄧不利多 邓不利多 [Deng4 bu4 li3 duo1] /Dumbledore (Tw)/
麦格 麦格 [Mai4 ge2] /McGonagall (character from Harry Potter)/
@erjiang
erjiang / .gitconfig
Last active August 29, 2015 14:03
Eric's git config
[user]
name = Eric Jiang
email = eric@doublemap.com
[core]
editor = vim
[color]
branch = auto
diff = auto
status = auto
[alias]