Skip to content

Instantly share code, notes, and snippets.

View ChristianKienle's full-sized avatar
🐶
Coconut Shock

Christian Kienle ChristianKienle

🐶
Coconut Shock
  • Apple
  • Cupertino
View GitHub Profile
var isSuccess:Bool {
switch self {
case .Success(let result) : return true
case .Failure(let error) : return false
}
}
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
#import <Foundation/Foundation.h>
@class CKRecordID;
@interface CKCPartialErrorItem : NSObject
@property (strong) NSError *error;
@property (strong) CKRecordID *recordID;
@end
@class CKRecord;
#import <Foundation/Foundation.h>
@interface NSURLResponse (Connect)
#pragma mark - Properties
@property (readonly) BOOL isHTTPResponse;
@property (readonly) NSHTTPURLResponse *HTTPResponse;
@end
@ChristianKienle
ChristianKienle / gist:7514453
Last active December 28, 2015 14:19
Invoke +newUUID to create a new UUID
curl https://demo.obcl.io/Service \
-X POST \
-d '{"selector" : "newUUIDString", "arguments" : []}'
sdsdasdasdadds
/*
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
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
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);
/*
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