I hereby claim:
- I am lukewar on github.
- I am lukewar (https://keybase.io/lukewar) on keybase.
- I have a public key ASDI7f_Cs2zIpbUjgSZdgiEplHaq0l99a0rf9XvIazty1Ao
To claim this, I am signing this object:
| xcodebuild test -workspace <>.xcworkspace -scheme <> -destination "platform=iOS Simulator,name=iPhone Retina (4-inch),OS=7.1 |
| NSBlockOperation *operation = [NSBlockOperation blockOperationWithBlock:^{ | |
| dispatch_group_t dispatchGroup = dispatch_group_create(); | |
| dispatch_group_enter(dispatchGroup); | |
| [task runWithCompletion:^{ | |
| dispatch_group_leave(dispatchGroup); | |
| }]; | |
| dispatch_group_wait(dispatchGroup, DISPATCH_TIME_FOREVER); | |
| }]; |
| - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath | |
| { | |
| if ([tableView respondsToSelector:@selector(setSeparatorInset:)]) { | |
| [tableView setSeparatorInset:UIEdgeInsetsZero]; | |
| } | |
| if ([tableView respondsToSelector:@selector(setLayoutMargins:)]) { | |
| [tableView setLayoutMargins:UIEdgeInsetsZero]; | |
| } | |
| if ([cell respondsToSelector:@selector(setLayoutMargins:)]) { | |
| [cell setLayoutMargins:UIEdgeInsetsZero]; |
| #include <time.h> | |
| // Source http://blog.soff.es/how-to-drastically-improve-your-app-with-an-afternoon-and-instruments/ | |
| + (NSDate *)dateFromISO8601String:(NSString *)string { | |
| if (!string) { | |
| return nil; | |
| } | |
| struct tm tm; |
| CGFloat timeout = 2; | |
| dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); | |
| _timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, queue); | |
| dispatch_source_set_timer(_timer, dispatch_time(DISPATCH_TIME_NOW, timeout * NSEC_PER_SEC), DISPATCH_TIME_FOREVER, 0); | |
| dispatch_source_set_event_handler(_timer, ^{ | |
| // custom code | |
| dispatch_source_cancel(_timer); |
| #define STRINGIFY(k) (@#k) |
| - make sure you specified 'binary_basename' or 'binary_file' | |
| - make sure your project has coverage enabled | |
| - make sure that configuration you're using to gather coverage has *Build Active Architecture Only* `ONLY_ACTIVE_ARCH` set to `YES` | |
| openssl pkcs12 -in cert.p12 -out cert.pem -nodes | |
| -nodes - option if you want to export the private key unencrypted (plaintext): |
| grep -r advertisingIdentifier . |
I hereby claim:
To claim this, I am signing this object: