This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p nathan/is_a_{alex,god} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let delayTime = dispatch_time(DISPATCH_TIME_NOW, Int64(1 * Double(NSEC_PER_SEC))) | |
dispatch_after(delayTime, dispatch_get_main_queue()) { | |
println("test") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface NSURLRequest (cURL) | |
- (NSString *)curlCommand; | |
@end | |
@implementation NSURLRequest (cURL) | |
- (NSString *)curlCommand | |
{ | |
NSString *(^stringFromDict)(NSDictionary *dict) = ^NSString*(NSDictionary *dict){ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface NSURLRequest (CURL) | |
- (NSString *)curlCommand; | |
@end | |
@implementation NSURLRequest (CURL) | |
- (NSString *)curlCommand | |
{ | |
NSDictionary *params = [NSJSONSerialization JSONObjectWithData:self.HTTPBody options:0 error:nil]; | |
NSMutableString *paramString = [NSMutableString stringWithString:@"{"]; | |
for (NSString *key in params) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BOOL(^(^comparator)(NSString *, NSString *, BOOL))(NSString *, NSDictionary *) = ^BOOL(^(NSString *prefixString, NSString *typeString, BOOL hasNumberedSuffix))(NSString *, NSDictionary *) { | |
return ^BOOL(NSString *str, NSDictionary *dict) { | |
NSString *regexString = [NSString stringWithFormat:@"%@_([0-9]{2})_%@", prefixString, typeString]; | |
NSError *err = nil; | |
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:regexString options:nil error:&err]; | |
if ([[regex matchesInString:str options:0 range:NSMakeRange(0, [str length])] count] > 0) { | |
return YES; | |
} else { | |
return NO; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#--- | |
# iPIN - iPhone PNG Images Normalizer v1.0 | |
# Copyright (C) 2007 | |
# | |
# Author: | |
# Axel E. Brzostowski | |
# http://www.axelbrz.com.ar/ | |
# [email protected] | |
# | |
# References: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import biplist | |
import os | |
import requests | |
import tempfile | |
import sys | |
import git | |
testflight_api_url = "http://testflightapp.com/api/builds.json" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import shutil | |
from zipfile import ZipFile | |
from boto.s3.connection import S3Connection | |
from tempfile import mkdtemp | |
aws_access_key_id = os.getenv("AWS_ACCESS_KEY_ID") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *pluralString; | |
NSString *lastComponent = [person.firstName substringWithRange:NSMakeRange(firstName - 1, 1)]; | |
if ([lastComponent isEqualToString:@"s"]) { | |
pluralString = @"'"; | |
} else { | |
pluralString = @"'s"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from git import * | |
from argparse import ArgumentParser | |
import urllib | |
import shutil | |
from elementtree.ElementTree import Element, parse | |
import os |