Code snippets from several projects.