Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
// | |
// Car.h | |
// | |
#import <Foundation/Foundation.h> | |
@interface Car : NSObject | |
@property (nonatomic, assign) NSInteger horsepower; |
#import "Kiwi.h" | |
#import "Cruiser.h" | |
registerMatcher(haveFighters) // From what I understand, the `registerMatcher` macro | |
registerMatcher(haveNoFighters) // is simply a trick to enable code completion in Xcode. | |
// Using this twice causes a warning for duplicate category | |
// definitions. | |
SPEC_BEGIN(KWUserDefinedMatcherFunctionalTest) |
Index: tests/cindex/test_translation_unit.py | |
=================================================================== | |
--- tests/cindex/test_translation_unit.py (revision 201083) | |
+++ tests/cindex/test_translation_unit.py (working copy) | |
@@ -1,5 +1,6 @@ | |
import gc | |
import os | |
+import tempfile | |
from clang.cindex import CursorKind |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
NSDateFormatter *dateFormatter = [NSDateFormatter new]; | |
dateFormatter.dateFormat = @"yyyy-MM-dd hh:mm:ss"; | |
NSDate *dateOne = [NSDate dateWithTimeIntervalSince1970:1392634252709/1000]; | |
NSDate *dateTwo = [dateFormatter dateFromString:@"2014-02-17 10:50:52"]; | |
// [FAILED], expected subject to equal | |
// (__NSDate) 2014-02-17 01:50:52 +0000, got | |
// (__NSDate) 2014-02-17 10:50:52 +0000 | |
[[dateOne should] equal:dateTwo]; |
#!/bin/bash | |
while : | |
do | |
clear | |
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $* | |
sleep 1 | |
done |
pod 'Kiwi/XCTest', git: 'https://github.com/modocache/Kiwi.git', | |
branch: 'arc-kwmessagepattern' |
// Taken from the commercial iOS PDF framework http://pspdfkit.com. | |
// Copyright (c) 2013 Peter Steinberger. All rights reserved. | |
// Licensed under MIT (http://opensource.org/licenses/MIT) | |
// | |
// You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it. | |
#import <objc/runtime.h> | |
#import <objc/message.h> | |
// Compile-time selector checks. |
#import "AppDelegate.h" | |
#import <OctoKit/OctoKit.h> | |
@implementation AppDelegate | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
self.window.backgroundColor = [UIColor whiteColor]; | |
[self.window makeKeyAndVisible]; |