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
| var isSuccess:Bool { | |
| switch self { | |
| case .Success(let result) : return true | |
| case .Failure(let error) : return false | |
| } | |
| } |
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
| public enum QueryResult { | |
| case Success(ResultSet) | |
| case Failure(SQLError) | |
| } | |
| func ==(a:QueryResult, b:QueryResult) -> Bool { | |
| switch(a) { | |
| case .Success(_): | |
| switch (b) { | |
| case .Success(_): return true |
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
| #import <Foundation/Foundation.h> | |
| @class CKRecordID; | |
| @interface CKCPartialErrorItem : NSObject | |
| @property (strong) NSError *error; | |
| @property (strong) CKRecordID *recordID; | |
| @end | |
| @class CKRecord; |
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
| #import <Foundation/Foundation.h> | |
| @interface NSURLResponse (Connect) | |
| #pragma mark - Properties | |
| @property (readonly) BOOL isHTTPResponse; | |
| @property (readonly) NSHTTPURLResponse *HTTPResponse; | |
| @end |
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
| curl https://demo.obcl.io/Service \ | |
| -X POST \ | |
| -d '{"selector" : "newUUIDString", "arguments" : []}' |
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
| sdsdasdasdadds |
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
| /* | |
| Cocoa64.tops | |
| We now have a more powerful tool for 64-bit conversions; please see ConvertCocoa64 in the same directory. | |
| This script converts Cocoa sources to 64-bit. | |
| Assumes careful inspection of changes and additional hand edits. | |
| Please refer to the "64-Bit Transition Guide for Cocoa" more info about this script: | |
| http://developer.apple.com/documentation/Cocoa/Conceptual/Cocoa64BitGuide/index.html |
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
| One of the few public Objective-Cloud.com tests: | |
| curl -d "{ \"message\" : { \"selector\" : \"dictionary:withRemovedKey:\", \"arguments\" : [{ \"firstName\" : \"Chris\", \"lastName\" : \"Kienle\" }, \"lastName\"] } }" messages.objective-cloud.com:8080/teams/9811/apps/de.cocoading.CloudApp/services/YourService |
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
| select * from main.y_primary_key_to_uuid as main_mapping, ipad.y_primary_key_to_uuid as ipad_mapping join main.y_primary_key_to_uuid on (ipad_mapping_y_uuid != main_mapping.y_uuid); |
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
| /* | |
| File: Fetcher.m | |
| Abstract: | |
| Version: 1.0 | |
| Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple | |
| Inc. ("Apple") in consideration of your agreement to the following | |
| terms, and your use, installation, modification or redistribution of |