Various code snippets and programs