Little pieces of code I think deserve to be shared