Categories
Uncategorised

C Callbacks in Swift

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.

Source: C Callbacks in Swift – Ole Begemann

Categories
Uncategorised

A drop-in tool that monitors UITableViewCell & UICollectionViewCell rendering performance on the fly.

A drop-in tool that monitors UITableViewCell & UICollectionViewCell rendering performance on the fly.

Source: diwu/DWURecyclingAlert

Categories
Uncategorised

Docker简明教程 | Docket quick start

Docker自从诞生以来就一直备受追捧,学习Docker是一件很炫酷、很有意思的事情。我希望通过这篇文章能够让大家快速地入门Docker,并有一些学习成果来激发自己的学习兴趣。我也只是一个在Docker这条巨鲸上玩耍的小孩,全文如有不明确、不正确的地方,还请斧正。

Source: Docker简明教程 | saymagic’s blog

Categories
Uncategorised

On Recruiting, Inclusiveness, and Crafting Better Job Descriptions – Safari Blog

Don’t optimize for discouraging undesirables. Optimize for encouraging the people who you do want.

Source: On Recruiting, Inclusiveness, and Crafting Better Job Descriptions – Safari Blog

Categories
Uncategorised

LocalizationManager

OSX utility app to manage the localization .strings files

Source: LigeiaRowena/LocalizationManager

Categories
Uncategorised

tiimgreen/github-cheat-sheet

A collection of cool hidden and not so hidden features of Git and GitHub.

Source: tiimgreen/github-cheat-sheet

Categories
Uncategorised

ios-flexboxkit

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.

Source: alexdrone/ios-flexboxkit

Categories
Uncategorised

在 Google Map 加入 D3 圖像

如何在 Google Map 裡面加入 D3 的圖像,這次我們實際將資料套進去吧。

Source: 在 Google Map 加入 D3 圖像 – 2 « kuro’s Blog

Categories
Uncategorised

Constraints & Transformations | Reveal

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:

 

 

 

Source: Constraints & Transformations | Reveal

Categories
Uncategorised

a request lifecycle cheatsheet for @hapijs

https://twitter.com/mt_harrison/status/602731699584176129

lifecycle cheatsheet for @hapijs