Skip to content

Instantly share code, notes, and snippets.

@bzmario
bzmario / Swift Events
Last active October 14, 2015 10:37 — forked from ColinEberhardt/Swift Events
An eventing mechanism for Swift
// Based on https://gist.github.com/ColinEberhardt/05fafaca143ac78dbe09
// Make handler as closure type
protocol Disposable {
func dispose()
}
class Event<T> {
typealias Handler = (data: T) -> Void
private var handlers = [HandlerWrapper<T>]()
@bzmario
bzmario / 10.11_troubleshooting.md
Last active October 13, 2015 09:42 — forked from leecade/10.11_troubleshooting.md
10.11_troubleshooting

Xcode 7 error

simulator runtime is not available.
Unable to open liblaunch_sim.dylib Try reinstalling Xcode or the simulator runtime.

Solution: