A series of quick code snippets concerning leafs.