This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Cocoa | |
| protocol Matcher { | |
| typealias Matchable | |
| func matches(object: Matchable) -> Bool | |
| } | |
| class EqualMatcher<T:Equatable>: Matcher { | |
| typealias Matchable = T | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Playground - noun: a place where people can play | |
| import Cocoa | |
| protocol Matcher { | |
| func matches(object: AnyObject) -> Bool | |
| } | |
| class EqualMatcher: Matcher { | |
| let testObject: AnyObject |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From 84ce1471f76b84bb5bfa369dab19f4d920096e4f Mon Sep 17 00:00:00 2001 | |
| From: Luke Redpath <luke@lukeredpath.co.uk> | |
| Date: Mon, 14 Apr 2014 11:46:21 +0100 | |
| Subject: [PATCH] Got married | |
| --- | |
| _includes/about.html | 2 +- | |
| 1 file changed, 1 insertion(+), 1 deletion(-) | |
| diff --git a/_includes/about.html b/_includes/about.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extern const struct DomainRelationships { | |
| __unsafe_unretained NSString *records; | |
| __unsafe_unretained NSString *registrant; | |
| __unsafe_unretained NSString *user; | |
| } DomainRelationships; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extern const struct DomainRelationships { | |
| __unsafe_unretained NSString *records; | |
| __unsafe_unretained NSString *registrant; | |
| __unsafe_unretained NSString *user; | |
| } DomainRelationships; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import "UITextField+RACKeyboardSupport.h" | |
| #import <ReactiveCocoa/RACEXTScope.h> | |
| #import <ReactiveCocoa/NSObject+RACDescription.h> | |
| @implementation UITextField (RACKeyboardSupport) | |
| - (RACSignal *)rac_keyboardReturnSignal { | |
| @weakify(self); | |
| return [[[[RACSignal | |
| defer:^{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <XCTest/XCTest.h> | |
| @interface Tests : XCTestCase | |
| @end | |
| @implementation Tests | |
| - (void)setUp | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define UIColorFromRGBHexValue(rgbValue) [UIColor \ | |
| colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \ | |
| green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \ | |
| blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0] | |
| #define UIColorFromRGBHexValueWithAlpha(rgbValue,a) [UIColor \ | |
| colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \ | |
| green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \ | |
| blue:((float)(rgbValue & 0xFF))/255.0 alpha:a] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // UIAlertView+BlockSupport.h | |
| // | |
| // Created by Luke Redpath on 08/08/2013. | |
| // | |
| #import <UIKit/UIKit.h> | |
| /* Called when the user taps a button in the alert view or the alert | |
| * is cancelled. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Pod::Spec.new do |s| | |
| s.name = 'ISO8601DateFormatter' | |
| s.version = '0.6' | |
| s.license = 'BSD' | |
| s.summary = 'A Cocoa NSFormatter subclass to convert dates to and from ISO-8601-formatted strings. Supports calendar, week, and ordinal formats.' | |
| s.homepage = 'https://bitbucket.org/boredzo/iso-8601-parser-unparser/' | |
| s.author = 'Peter Hosey' | |
| s.source = { :git => 'https://github.com/lukeredpath/iso-8601-date-formatter.git', :branch => "support-millisecond-precision" } | |
| s.source_files = 'ISO8601DateFormatter.{h,m}' |