Code associated to the All Things Computational blog (http://fxmartins.com)