I hereby claim:
- I am kharmabum on github.
- I am jc (https://keybase.io/jc) on keybase.
- I have a public key whose fingerprint is A5AE AC2B 50E4 5BFF B4A3 38AF 225C CFDF 8D8A F6BF
To claim this, I am signing this object:
| ps auxw | grep Coff | |
| cp ~/Downloads/sqlite.db ~/Library/Application\ Support/iPhone\ Simulator/7.1/Applications/9CD889F1-2335-481F-8C34-6E4B7E33F571/Documents/sqlite.db |
| ######################### | |
| # .gitignore file for Xcode5 | |
| # | |
| # NB: if you are storing "built" products, this WILL NOT WORK, | |
| # and you should use a different .gitignore (or none at all) | |
| # This file is for SOURCE projects, where there are many extra | |
| # files that we want to exclude | |
| # | |
| # For updates, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
| # and https://gist.github.com/adamgit/3786883 |
| - (CLLocationCoordinate2D)locationFromString:(NSString *)locationString{ | |
| CLLocationCoordinate2D coordinate; | |
| // Extract individual components | |
| NSMutableArray *locationColumns = [NSMutableArray arrayWithArray: | |
| [locationString componentsSeparatedByCharactersInSet: | |
| [NSCharacterSet whitespaceCharacterSet]]]; | |
| // Remove empty objects |
I hereby claim:
To claim this, I am signing this object:
| // App delegate | |
| #import <AVFoundation/AVFoundation.h>// place in .h | |
| // applicationDidFinishLaunchingWithOptions | |
| // [self prepareAudioSession]; | |
| - (BOOL)prepareAudioSession { | |
| // deactivate session |
| #import <AudioToolbox/AudioToolbox.h> | |
| +(SystemSoundID)bleatSoundID { | |
| static SystemSoundID bleatSoundID = 0; | |
| static dispatch_once_t onceToken; | |
| dispatch_once(&onceToken, ^{ | |
| NSString *soundPath = [[NSBundle mainBundle] pathForResource:@"Bleat" ofType:@"aif"]; | |
| AudioServicesCreateSystemSoundID((__bridge CFURLRef)[NSURL fileURLWithPath: soundPath], &bleatSoundID); | |
| }); | |
| return bleatSoundID; |
| + (void)initialize | |
| { | |
| if (self == [JBAPeripheral self]) { | |
| // ddLogLevel = LOG_LEVEL_OFF; | |
| } | |
| } |
| #include <assert.h> | |
| #include <stdbool.h> | |
| #include <sys/types.h> | |
| #include <unistd.h> | |
| #include <sys/sysctl.h> | |
| static Bool AmIBeingDebugged(void) { | |
| int mib[4]; | |
| struct kinfo_proc info; | |
| size_t size = sizeof(info); |