Updated the post to include a gist instead so that I can update it easier