Irrational Exuberance!

War Card Game in Python

December 2, 2012 A simple implementation of the war card game in Python, made for an interview some time back.

Extraction: Get Metadata from HTML Documents

November 23, 2012 As part of a toy project I'm playing with I needed to extract titles, summaries and images, so I threw that together as the extraction library.

Creating Multi-Worksheet Excel Docs with xlwt

November 4, 2012 xlwt is a great little Python module, this tutorial walks through the steps of using it to create a multi-worksheet Excel with cross-referencing formulas.

Storing Bounded Timeboxes in Redis

April 7, 2011 If you're doing analytics, reports or dealing with memory constraints in Redis, you're probably dealing with keeping two sorted-sets mutually consistent. This article also takes a look at using multi/exec to keep it fresh.

Python Default Parameter Value Gotchas

September 11, 2010 Knowing when default parameter values are initialized can save you some pain. A lot of pain. A whole, whole lot of pain.