Credits: Thanks to Cristian Tomatis for contributing this example.
Credits: Thanks to Noam Yorav-Raphael for contributing this example.
Credits: Thanks to Kyle S. for contributing this to the site.
Click on the language of your choice:
I'd love to add more examples in your favourite programming language, so feel free to send them my way. Email andychilton at that gmail place in the sky or tweet to me @andychilton.