I hereby claim:
- I am indragiek on github.
- I am indragie (https://keybase.io/indragie) on keybase.
- I have a public key whose fingerprint is 9B62 C6E3 9E0D C285 1423 1EB3 3FA7 3F1A E47E 67A6
To claim this, I am signing this object:
| // | |
| // JumpFixTableViewController.swift | |
| // | |
| // Created by Indragie on 1/3/15. | |
| // Copyright (c) 2015 Indragie Karunaratne. All rights reserved. | |
| // | |
| import UIKit | |
| /// Table view controller that implements a workaround for a bug where |
| import Cocoa | |
| // Doesn't work for CGFloats | |
| let a: CGFloat = 1.0 | |
| let b: CGFloat = 2.0 | |
| String(format: "%f %f", a, b) // "0.000000 0.000000" | |
| // Works for Floats | |
| let c: Float = 1.0 | |
| let d: Float = 2.0 |
| public protocol TableViewSectionType { | |
| typealias ItemCollection: CollectionType | |
| } | |
| public protocol TableViewCellFactoryType { | |
| typealias Item | |
| } | |
| public final class TableViewDataSource< | |
| SectionCollection: CollectionType, |
| * thread #1: tid = 0x4ec0b, 0x0000000102444b8a libobjc.A.dylib`objc_exception_throw, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 | |
| frame #0: 0x0000000102444b8a libobjc.A.dylib`objc_exception_throw | |
| frame #1: 0x00000001027abe6d CoreFoundation`+[NSException raise:format:] + 205 | |
| frame #2: 0x00000001066f79f6 UIFoundation`-[NSConcreteTextStorage attribute:atIndex:effectiveRange:] + 131 | |
| frame #3: 0x00000001066c351b UIFoundation`-[NSAttributedString(NSAttributedStringUIFoundationAdditions) rangeOfTextTable:atIndex:] + 65 | |
| frame #4: 0x00000001066f9e1b UIFoundation`-[NSTextBlockLayoutHelper initWithTextTable:charIndex:text:layoutManager:containerWidth:collapseBorders:] + 376 | |
| frame #5: 0x00000001066fe85f UIFoundation`-[NSTextTable rectForBlock:layoutAtPoint:inRect:textContainer:characterRange:] + 355 | |
| frame #6: 0x00000001066fcc3b UIFoundation`-[NSTextTableBlock rectForLayoutAtPoint:inRect:textContainer:characterRange:] + 116 | |
| frame #7: 0x0000000106706b3b UIFoundation`-[NSType |
I hereby claim:
To claim this, I am signing this object:
| // | |
| // DynamicTypeLabel.swift | |
| // | |
| // Created by Indragie on 10/16/14. | |
| // Copyright (c) 2014 Indragie Karunaratne. All rights reserved. | |
| // | |
| import UIKit | |
| class DynamicTypeLabel : UILabel { |
| public struct RandomNumberGenerator: SequenceType { | |
| let range: Range<Int> | |
| let count: Int | |
| public init(range: Range<Int>, count: Int) { | |
| self.range = range | |
| self.count = count | |
| } | |
| public func generate() -> GeneratorOf<Int> { |
| // | |
| // KeypathExtensions.swift | |
| // | |
| // Created by Indragie on 10/3/14. | |
| // Copyright (c) 2014 Indragie Karunaratne. All rights reserved. | |
| // | |
| import Foundation | |
| let KeyRegex = NSRegularExpression(pattern: "^(\\w[\\w\\d]*)?(\\[\\d+\\])*$", options: NSRegularExpressionOptions(0), error: nil) |
| struct SomeStruct { | |
| let value: String | |
| } | |
| extension UIView { | |
| var ind_someProperty: SomeStruct { | |
| return SomeStruct(value: "Broken compiler") | |
| } | |
| } |
| // | |
| // LTClientBrowser.h | |
| // LayerTreeServer | |
| // | |
| // Created by Indragie Karunaratne on 2014-05-21. | |
| // Copyright (c) 2014 Indragie Karunaratne. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> | |
| #import <LayerTreeKit/LayerTreeKit.h> |