standard code snips for everyday use