With Swift 2, it is now possible to do this fully natively in Swift. C function pointers are imported into Swift as closures. You can pass any Swift closure or function with matching parameters to code that expects a C function pointer – with one massive caveat: unlike closures, C function pointers don’t have the concept of capturing state. As a result, the compiler will only allow Swift closures that do not capture any outside state to be bridged to a C function pointer. Swift uses the new @convention(c) notation to indicate this calling convention.
A drop-in tool that monitors UITableViewCell & UICollectionViewCell rendering performance on the fly.
Source: Docker简明教程 | saymagic’s blog
Don’t optimize for discouraging undesirables. Optimize for encouraging the people who you do want.
A collection of cool hidden and not so hidden features of Git and GitHub.
A simple UIKit extension to wrap the flexbox properties in regular UIView. This project is based on the robust Facebook’s C implementation of Flexbox. The goal is to have a small standalone UIKit library to layout elements. It doesn’t rely on the DOM model at all.
Prior to the release of iOS 8, mixing Auto Layout with view affine transformations was a shady business: some configurations just didn’t work as expected, so it was mostly avoided or worked around (this Stack Overflow question on the topic has been quite popular). But soon after iOS 8 was released it became apparent that one of the many changes Apple introduced was how Auto Layout and transformations interact. To illustrate, here are two screenshots of the same app running on iOS 7 and iOS 8:
lifecycle cheatsheet for @hapijs