I hereby claim:
- I am edwardmp on github.
- I am edwardmp (https://keybase.io/edwardmp) on keybase.
- I have a public key whose fingerprint is 9385 200B 3AF9 0754 6D99 A7BE A261 8AC5 7780 0BF6
To claim this, I am signing this object:
alias loc='find . ! -path "./Pods/*" "(" -name "*.m" -or -name "*.mm" -or -name "*.cpp" ")" -print0 | xargs -0 wc -l' |
alias serverify='python -m SimpleHTTPServer' |
I hereby claim:
To claim this, I am signing this object:
buildPlist="${TARGET_BUILD_DIR}/${INFOPLIST_PATH}" | |
PlistBuddy="/usr/libexec/PlistBuddy" | |
git=`sh /etc/profile; which git` | |
CFBundleVersion=`"$git" rev-list --all | wc -l` | |
$PlistBuddy -c "Set :CFBundleVersion $CFBundleVersion" "$buildPlist" | |
#$PlistBuddy -c "Set :CFBundleVersion $CFBundleVersion" "$INFOPLIST_FILE" | |
$PlistBuddy -c "Set :CFBundleVersion $CFBundleVersion" "${DWARF_DSYM_FOLDER_PATH}/${WRAPPER_NAME}.dSYM/Contents/Info.plist" |
/* | |
1. Adhere to the NSURLSessionDelegate delegate | |
2. Initialize NSURLSession and specify self as delegate (e.g. [NSURLSession sessionWithConfiguration:defaultConfigObject delegate:self delegateQueue: [NSOperationQueue mainQueue]];) | |
3. Add the method below to your class | |
4. Change the certificate resource name | |
*/ | |
- (void)URLSession:(NSURLSession *)session didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition, NSURLCredential *))completionHandler | |
{ | |
SecTrustRef serverTrust = challenge.protectionSpace.serverTrust; |
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *credential))completionHandler | |
{ | |
completionHandler(NSURLSessionAuthChallengeUseCredential, [NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust]); | |
} |
import UIKit | |
import Foundation | |
class ViewController: UIViewController, NSURLSessionDelegate { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
httpGet(NSMutableURLRequest(URL: NSURL(string: "https://example.com")!)) | |
} |
package main | |
import ( | |
"io" | |
"os" | |
"strings" | |
) | |
type rot13Reader struct { | |
r io.Reader |
package eu.sig.aevas; | |
import eu.sig.aevas.dependencymanager.maven.MavenDependency; | |
import org.apache.commons.io.FileUtils; | |
import org.apache.commons.lang3.StringUtils; | |
import org.apache.log4j.Logger; | |
import org.eclipse.jdt.core.JavaCore; | |
import org.eclipse.jdt.core.dom.*; | |
import java.io.File; |
{ | |
"aps":{ | |
"alert":{ | |
"body":"The status of flight KL123 scheduled 20:30 to London Heathrow has changed to 'boarding'. Boarding at 20:05.", | |
"title":"Boarding at 20:05" | |
}, | |
"category":"openFlightCategory" | |
}, | |
} |