Initial commit 

At the request of https://gist.github.com/ZhangYiJiang/5210062/#comment-802838