Skip to content

Instantly share code, notes, and snippets.

Justin McNally j-mcnally

Block or report user

Report or block j-mcnally

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@linjunpop
linjunpop / Objective-C-for-Rubyist.md
Last active Nov 28, 2018
Objective-C for Rubyist.
View Objective-C-for-Rubyist.md

Objective-C for Rubyist

Basic Syntax

Message

[you say:@"Hello."];
@machty
machty / new-router-examples.md
Last active May 2, 2018
How to do cool stuff with the new Router API
@earthgecko
earthgecko / bash.generate.random.alphanumeric.string.sh
Last active May 19, 2019
shell/bash generate random alphanumeric string
View bash.generate.random.alphanumeric.string.sh
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
@blakewatters
blakewatters / gist:1303723
Created Oct 21, 2011
Performing RestKit Mapping Operation Manually
View gist:1303723
id<RKParser> parser = [[RKParserRegistry sharedRegistry] parserForMIMEType:RKMIMETypeJSON];
NSError *error = nil;
id parsedObject = [parser objectFromString:JSON error:&error];
if (parsedObject) {
NSManagedObject *destinationObject = // init or fetch your target object
RKObjectMappingOperation *operation = [RKObjectMappingOperation mappingOperationFromObject:parsedObject toObject:destinationObject withMapping:yourObjectMapping];
BOOL success = [operation performMapping:&error];
}
You can’t perform that action at this time.