This has been updated and moved here: https://gist.github.com/codeartery/9c0317129b64ce63733ba692a7211dc1