Some code snippets for quick lookup.