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
| -(RACSignal*)fetchUserIdSignal { | |
| return [RACSignal createSignal:^(RACDisposable *(id subscriber) { | |
| [Client fetchUserIdSuccess:^(NSString *userId) { | |
| [subscriber sendNext:userId]; | |
| [subscriber sendCompleted]; | |
| } failure:^(NSError *error) { | |
| [subscriber sendError:error] | |
| }]; | |
| return nil; | |
| } |
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
| __weak typeof(self) weakSelf = self; | |
| [blockExample performComputation:buffer.audioBufferList completionHandler:^(NSArray *fftData, BOOL isEnd) { | |
| weakSelf.fftData = fftData; | |
| ... | |
| }]; | |
| ... | |
| __weak typeof(self) weakSelf = self; | |
| [blockExample fetchImage:url sucess:^(UIImage *image) { |
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
| typedef void (^GetImageSucess)(UIImage *image); | |
| typedef void (^Failure) (NSError *error); | |
| @interface BlockExample : NSObject | |
| - (void)performComputation:(AudioBufferList *)bufferListInOut completionHandler:(void(^)(NSArray *fftData, BOOL isEnd))completion; | |
| - (void)fetchImage:(NSURL *)imageURL sucess:(GetImageSucess)sucess failure:(Failure)failure; | |
| @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
| @interface Paginator : NSObject | |
| ... | |
| @property (nonatomic, weak) id<PaginatorDelegate> delegate; | |
| ... | |
| @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
| @protocol PaginatorDelegate <NSObject> | |
| - (void)paginator:(Paginator *)paginator didLoadNewContent:(NSArray *)items; | |
| @optional | |
| - (void)paginatorDidReachEnd:(Paginator *)paginator; | |
| @end |
This file has been truncated, but you can view the full file.
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
| Using worker: worker-jupiter-brain:3971133a-0193-4941-8ae3-737e87ce1260 (f210c509-545e-4cee-8e61-652e8d864dde:) | |
| travis_fold:start:system_info | |
| [0K[33;1mBuild system information[0m | |
| Build language: objective-c | |
| travis_fold:end:system_info | |
| [0K |
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
| Using worker: worker-jupiter-brain:f2bb9259-0308-4812-82e5-56dff7d2d583 (e7a38367-a0cd-4ae0-835e-937a8144ee45:) | |
| travis_fold:start:system_info | |
| [0K[33;1mBuild system information[0m | |
| Build language: objective-c | |
| travis_fold:end:system_info | |
| [0K |
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
| awk '{ print length, $0 }' | sort -n -s | cut -d" " -f2- |
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
| @interface KVOObjectTests : XCTestCase | |
| @property (nonatomic) KVOObject *kVOObject; | |
| @property (nonatomic) BOOL beenDealloc; | |
| @property (nonatomic) id<AspectToken> aspectToken; | |
| @end | |
| - (void)setUp { | |
| [super 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
| // Your pull request, passed | |
| method: | |
| { | |
| return 3 | |
| } | |
| test case: | |
| { | |
| method().is(3) | |
| } |