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
| // DataParseOperationQueue.h | |
| #import <Foundation/Foundation.h> | |
| @interface DataParseOperationQueue : NSOperationQueue | |
| // XXX: 全ての実行中の`NSOperation`が終わるまで待ち、完了したらcompletionHandler blocksを実行する | |
| - (void)cancelAllOperationsWithCompletionHandler:(void(^)(void))completionHandler; | |
| @end |
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
| NSArray *sourceData = @[ | |
| @{@"id": @"A", @"createdAt": @1234533333}, | |
| @{@"id": @"B", @"createdAt": @1234599999}, | |
| @{@"id": @"C", @"createdAt": @1234511111}, | |
| @{@"id": @"D", @"createdAt": @1234522222}, | |
| @{@"id": @"E", @"createdAt": @1234599999}, | |
| ]; | |
| // Sort descritors | |
| NSSortDescriptor *createdAtSortDescriptor = [NSSortDescriptor sortDescriptorWithKey:@"createdAt" ascending:NO]; |
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
| if (sizeof(int *) == 4) { | |
| // 32bit | |
| } else if (sizeof(int *) == 8) { | |
| // 64bit | |
| } | |
| // others |
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
| xcodebuild test -workspace App.xcworkspace -scheme AppLogicTests \ | |
| -destination 'platform=Android,name=spam' | |
| #[...] | |
| Available destinations for the "AppLogicTests" scheme: | |
| { platform:iOS Simulator, id:1BE387A6-5747-40E5-B0CD-D09BF2ACB111, OS:7.0.3, name:iPad 2 } | |
| { platform:iOS Simulator, id:45E116FB-48BB-495E-90D3-130EE83FE36E, OS:7.1, name:iPad 2 } | |
| { platform:iOS Simulator, id:99C7DD9A-5706-441B-86E2-CA0132DA02E0, OS:8.0, name:iPad 2 } | |
| { platform:iOS Simulator, id:A22100E1-928C-4EF0-AD4A-1F7DFEEAC57F, OS:7.0.3, name:iPad Air } | |
| { platform:iOS Simulator, id:89C643E9-3031-4276-BCF5-E29A51489A8E, OS:7.1, name:iPad Air } | |
| { platform:iOS Simulator, id:08020160-40A3-4601-802D-187972CE1A42, OS:8.0, name:iPad Air } |
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
| #include "Pods/Pods.xcconfig" | |
| #include "Pods/Pods-Experimental.xcconfig" | |
| #include "Pods/Pods-Temporary.xcconfig" |
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
| # CoreData debugging. | |
| -com.apple.CoreData.SQLDebug 3 | |
| -com.apple.CoreData.MigrationDebug | |
| -com.apple.CoreData.SyntaxColoredLogging YES |
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 <SenTestingKit/SenTestingKit.h> | |
| #import <OCMock/OCMock.h> | |
| @interface XXXTestCase : SenTestCase | |
| #pragma mark - NSLocale(ja_JP@calendar=japanese) | |
| /*! | |
| @method createJPLocaleWithJapaneseCalendarMock |
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
| TESTING_TARGETS = %w[AppTests AppIntegrationTests] | |
| post_install do |installer| | |
| # アプリ側のxcode projectを開く | |
| Xcodeproj::Project.open('App.xcodeproj').tap do |project| | |
| targets = project.targets.find_all do |target| | |
| TESTING_TARGETS.include?(target.name) | |
| end | |
| # Test用macro定義 | |
| targets.each do |target| | |
| target.build_configurations.each do |config| |
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
| VBoxManage export <VM name> -o export.ova |
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
| cd ~/Library/Application Support/Developer/Shared | |
| mkdir Xcode\ 5.0.2 # <= ダウンロードしたXcodeにつけた名前でディレクトリを作成 | |
| cp -r Xcode/Plug-ins Xcode\ 5.0.2/ |