I hereby claim:
- I am jdg on github.
- I am jdg (https://keybase.io/jdg) on keybase.
- I have a public key whose fingerprint is 87B3 3E8A 79E7 D22B 6882 8A81 A4A6 432F 81CD 7DE1
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'tweetstream' | |
require 'boxcar_api' | |
SETTINGS = { | |
:key => 'xyz', # Provider Key | |
:secret => 'xyz', # Provider Secret | |
:tweeter => 'macrumorslive' # Whom we'll be following on Twitter | |
:tweeter_id => 1581511, # The tweeter's user id (check their RSS feed) |
#!/bin/bash | |
# Include commit rev script by @bsneed | |
buildPlist="${PRODUCT_NAME}-Info.plist" | |
buildCommit=$(/usr/local/git/bin/git --work-tree="${PROJECT_DIR}" show --abbrev-commit | grep "^commit") | |
/usr/libexec/PlistBuddy -c "Add :CFBundleCommit string $buildCommit" $buildPlist | |
if [ $? != 0 ] | |
then | |
/usr/libexec/PlistBuddy -c "Set :CFBundleCommit $buildCommit" $buildPlist | |
fi |
I hereby claim:
To claim this, I am signing this object:
- (void) deleteAllContacts { | |
CNContactStore *contactStore = [[CNContactStore alloc] init]; | |
[contactStore requestAccessForEntityType:CNEntityTypeContacts completionHandler:^(BOOL granted, NSError * _Nullable error) { | |
if (granted == YES) { | |
NSArray *keys = @[CNContactPhoneNumbersKey]; | |
NSString *containerId = contactStore.defaultContainerIdentifier; | |
NSPredicate *predicate = [CNContact predicateForContactsInContainerWithIdentifier:containerId]; | |
NSError *error; | |
NSArray *cnContacts = [contactStore unifiedContactsMatchingPredicate:predicate keysToFetch:keys error:&error]; |