Some code that helped me in the past few years of iOS development.