Update code examples and add link to gist.