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*)objectForKeyedSubscript:(NSString*)pattern | |
{ | |
NSError *error; | |
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:pattern options:0 error:&error]; | |
NSAssert( ! error, @"regex processing error"); | |
NSMutableArray *strings = [NSMutableArray new]; | |
NSArray *matches = [regex matchesInString:self options:0 range:self.fullRange]; | |
for(NSTextCheckingResult *match in matches) { | |
for (NSInteger i = 0; i < match.numberOfRanges; i++) { |
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
- (NSString *):(id)a { | |
return [self stringByAppendingString:[a description]]; | |
} | |
- (NSString *):(id)a :(id)b { return [[self:a]:b];} | |
- (NSString *):(id)a :(id)b :(id)c | |
{ return [[[self:a]:b]:c]; } | |
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 <MobileCoreServices/MobileCoreServices.h> | |
#import <AssetsLibrary/AssetsLibrary.h> | |
#import "TTVideo.h" | |
#define BYTES_PER_PIXEL 4 | |
@interface TTVideo () | |
// Redeclared as readwrite so that we can write to the property and still be atomic with external readers. | |
@property (readwrite, nonatomic) Float64 videoFrameRate; |
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
await | |
retrieveUsers( | |
(users) -> defer users | |
) |
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
await | |
retrieveUsers( | |
() -> defer users | |
) |
NewerOlder