All the blog content is written using ipython notebooks - this allows me to make web pages where I can easily embed maths, calculations, graphs and python programming easily. It also means that you are able to see, copy and play with the source code to these calculations. Unfortunately, google sites doesn't play nice with ipython notebooks, which is why my blog entries why they are located on a separate site.
At the bottom of each blog entry is a link to the notebooks (where the source code can also be downloaded). Alternatively, the whole source tree for all blogs is here:
http://nbviewer.ipython.org/github/joshualim/
Please feel free to distribute, play and abuse this code however you like.