This file contains 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
// | |
// EXPMatchers+containObject.h | |
// Created by Jonathan Crooke on 28/01/2014. | |
// | |
#import "Expecta.h" | |
/** | |
* Match a collection that contains at least one object that is | |
* an instance of expected |
This file contains 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 <Foundation/Foundation.h> | |
typedef NS_ENUM(NSUInteger, NSUTType) { | |
NSUTTypeImage, | |
NSUTTypeMovie, | |
NSUTTypeAudio, | |
NSUTTypeUnknown | |
}; | |
@interface NSURL (UTType) |
This file contains 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
-- This script automatically `cd`s to the directory of the current document. | |
-- You can use $f to represent the file for the current document. | |
-- This is nowhere near perfect, just a quick and dirty script. | |
-- NOTE: you need to have "Enable access for assistive devices" checked... | |
-- in the Accessibility preference pane. | |
-- Example: select a file in Finder, and type: echo The filename is $f | |
on getCurrentDocument() |
This file contains 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 SuppressPerformSelectorLeakWarningForExpression(expression) ({ \ | |
_Pragma("clang diagnostic push") \ | |
_Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \ | |
expression; \ | |
_Pragma("clang diagnostic pop") }) |
This file contains 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 UIKit | |
public extension UIColor { | |
public struct Flat { | |
public static var turquoise: UIColor { | |
return UIColor(red: 026.0/255, green: 188.0/255, blue: 156.0/255, alpha: 1.0) | |
} | |
public static var emerald: UIColor { |
This file contains 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
cd $WORKSPACE | |
rm -rf Build | |
security unlock-keychain -p '<password>' ~/Library/Keychains/login.keychain | |
agvtool -noscm new-version -all "$BUILD_NUMBER" | |
/usr/local/bin/xctool -workspace <workspace>.xcworkspace -scheme <scheme> -sdk 'iphoneos' clean archive -archivePath Build/<target-name> | |
/usr/bin/xcodebuild -exportArchive -exportProvisioningProfile <profile-name> -archivePath Build/<target-name>.xcarchive/ -exportPath Build/<target-name>.ipa > /dev/null |
This file contains 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
// | |
// EXPMatches+match.h | |
// Created by Jonathan Crooke on 25/03/2014. | |
// | |
#import "Expecta.h" | |
/** | |
* Expect string to match regular expression | |
*/ |
This file contains 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 IS_EQUAL(x,y) ((x && [x isEqual:y]) || (!x && !y)) |
This file contains 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
// | |
// UIPageViewControllerEndlessDataSource.h | |
// Created by Jonathan Crooke on 02/04/2014. | |
// | |
#import <UIKit/UIKit.h> | |
/** | |
* This data source protocol provides a wrapper for `UIPageViewControllerDataSource` | |
*/ |
This file contains 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
#!/bin/bash | |
GREP_OUTPUT=`grep -R 'fdescribe(\|fcontext(\|fexample(\|fspecify(' Tests` | |
if [ ! -z "$GREP_OUTPUT" ]; then | |
echo "Remove focussed specs before commiting." | |
echo $GREP_OUTPUT | |
exit 1 | |
fi |
OlderNewer