Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry session
Debugger
Hash.new { |h, k| h[k] = [] } |
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry sessionDebugger
Xcode | |
((.|\n)*) Created by .*$ | |
Appcode: | |
(.|\n)* Copyright |
I hereby claim:
To claim this, I am signing this object:
grep -r advertisingIdentifier . |
openssl pkcs12 -in cert.p12 -out cert.pem -nodes | |
-nodes - option if you want to export the private key unencrypted (plaintext): |
- 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` | |
#define STRINGIFY(k) (@#k) |
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); |
#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; |