Code samples to keep in your armoury