I hereby claim:
- I am mteece on github.
- I am mteece (https://keybase.io/mteece) on keybase.
- I have a public key whose fingerprint is A11C 93B2 294C B115 A311 4302 6BB8 8693 3E75 10B6
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| @interface ExampleClass : UIViewController | |
| @property (nonatomic, assign) BOOL someBool; | |
| // a few method declarations | |
| @end |
| NSString *URLString = @"http://example.com/path"; | |
| NSDictionary *parameters = @{ }; | |
| NSURLRequest *request = [[AFJSONRequestSerializer serializer] requestWithMethod:@"POST" URLString:URLString parameters:parameters error:nil]; | |
| AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request]; |
| /* | |
| * Compare the installed to required version. | |
| * | |
| * @param {String} installed The currently installed version string. | |
| * @param {String} required The required version string. | |
| * | |
| * compareVersions('1.0.1', '1.0.0') returns true | |
| * compareVersions('1.0.0', '1.0.0') returns true | |
| * compareVersions('0.0.9', '1.0.0') returns false | |
| * compareVersions('1.0.0', '1.0.1') returns false |
| static void Main() | |
| { | |
| Console.WriteLine(@" | |
| LET OFF SOME STEAM, BENNETT. | |
| '''';;;;;;;;;;;';;;''';::,,,:::::::;''++++++++++++ | |
| ;;;::::;;;;;;;;'++#'';;::,,,:::;;::;''++++++++++++ | |
| ;;::::::::;;;;##++#@#';;:,,:::;;;;;;''++++++++++++ | |
| ;;::::::::;;;#+,,,,;;+;;:::::;;'';;;'''+++++++++++ |
| #import <Foundation/Foundation.h> | |
| @interface EmailRepository : NSObject | |
| + (id)sharedEmailRepository; | |
| - (void)getDataFromServer:(NSString *)emailAddress onComplete:(void (^)(NSString *response))completionBlock onFailure:(void (^)(NSString *response))failureBlock; | |
| @end |
| # Xcode | |
| .DS_Store | |
| */build/* | |
| *.pbxuser | |
| !default.pbxuser | |
| *.mode1v3 | |
| !default.mode1v3 | |
| *.mode2v3 | |
| !default.mode2v3 | |
| *.perspectivev3 |
| // Initializing Variables | |
| var userChoice = prompt("Do you choose rock, paper, scissors, lizard, or spock?"); | |
| var choices = ["rock", "paper", "scissors", "lizard", "spock"]; | |
| var computerChoice = choices[ Math.floor( Math.random() * choices.length ) ]; | |
| // Function that compares the two values | |
| function compare( choice1, choice2 ) { | |
| var rock = { | |
| defeats: ["scissors", "lizard"], |
| NSError *error; | |
| NSData *jsonData = [NSJSONSerialization dataWithJSONObject:dictionaryOrArrayToOutput options:NSJSONWritingPrettyPrinted error:&error]; | |
| if (!jsonData) { | |
| NSLog(@"Got an error: %@", error); | |
| } else { | |
| NSString *jsonString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]; | |
| } |
| /* | |
| Generate a request with params. | |
| POST /post/url | |
| Host: www.example.com | |
| Content-Type: application/x-www-form-urlencoded; charset=utf-8 | |
| uuid=12345-ABC-9876-XYZ&first_name=john&last_name=doe | |
| */ |