A collection of useful titanium code snippets