I hereby claim:
- I am adamyanalunas on github.
- I am adamyanalunas (https://keybase.io/adamyanalunas) on keybase.
- I have a public key whose fingerprint is 7E9D DFEF B640 4696 DBC6 97AF BFA8 7AD7 D1AA 2CFC
To claim this, I am signing this object:
/x/==x |
# Listen on port 5000 | |
nc -k -l 5000 | |
# Test by posting a JSON file | |
curl -X POST -d @filename.txt http://local.devmachine/path/to/resource --header "Content-Type:application/json" |
@interface THObserver (RevealYourSecrets) | |
@property (nonatomic, strong) id block; | |
@end | |
@implementation THObserver (RevealYourSecrets) | |
@dynamic block; |
{ | |
"auto_complete_commit_on_tab": true, | |
"bold_folder_labels": true, | |
"caret_extra_bottom": 2, | |
"caret_extra_top": 2, | |
"caret_extra_width": 4, | |
"caret_style": "phase", | |
"close_windows_when_empty": true, | |
"color_scheme": "Packages/Predawn/predawn.tmTheme", | |
"dictionary": "Packages/Language - English/en_US.dic", |
I hereby claim:
To claim this, I am signing this object:
@interface Foo : NSObject | |
@property (nonatomic, assign)double ClassId, collegeId; | |
@property (nonatomic, retain)NSString *name, *date; | |
@end | |
@implementation Foo | |
@synthesize ClassId, collegeId; |
#!/bin/bash | |
PREVIOUS_HEAD=$1 | |
NEW_HEAD=$2 | |
BRANCH_SWITCH=$3 | |
if [[ $BRANCH_SWITCH == "1" && $PREVIOUS_HEAD != $NEW_HEAD ]]; then | |
# Kill the simulator. | |
SIM=`pgrep 'iPhone Simulator'` |
Addresses issue: #
bundle install
or bundle exec pod install
// Light syntax cleanup from https://gist.github.com/daehn/f17e8cdcf8d91b046f3c | |
private extension String { | |
subscript(index: Int) -> Character { | |
return self[startIndex.advancedBy(index)] | |
} | |
subscript(range: Range<Int>) -> String { | |
let start = startIndex.advancedBy(range.startIndex) |
// Normal array of strings | |
let array = ["This", "is", "string", "array"] | |
let characters = array.flatMap { | |
$0.characters | |
} | |
// This prints ["T", "h", "i", "s", "i", "s", "s", "t", "r", "i", "n", "g", "a", "r", "r", "a", "y"] | |
print(characters) | |
let words = array.flatMap { |