Skip to content

Instantly share code, notes, and snippets.

View devios1's full-sized avatar

Logan Murray devios1

View GitHub Profile
2015-01-27 1:48:10.756 PM Atom Helper[69923]: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** nil colorspace argument in initWithColorSpace:components:count:'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff8376e64c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff924836de objc_exception_throw + 43
2 CoreFoundation 0x00007fff8376e4fd +[NSException raise:format:] + 205
3 AppKit 0x00007fff8847808d -[NSColorSpaceColor initWithColorSpace:components:count:] + 120
4 AppKit 0x00007fff88477f45 +[NSColor colorWithColorSpace:components:count:] + 29
5 AppKit 0x00007fff884ab41b +[NSDynamicSystemColor keyboardFocusIndicatorColor] + 126
6 AppKit 0x00007fff8844f32f -[NSDynamicSystemColor recacheColor] + 197
@devios1
devios1 / HashSet.swift
Last active January 26, 2017 16:12 — forked from andelf/HashSet.swift
Modified version of andelf/HashSet.swift that includes a proper == implementation as well as -=.
import Foundation
struct HashSet<T : Hashable> {
typealias Element = T
var _map: Dictionary<T, ()> = [:]
var count: Int {
return _map.count
}