Various bits and bobs i've wriiten - mainly as a product of trying to learn ruby