Useful code examples.