Complete, working version.

Links back to original tweet.