Code samples from my blog.