Skip to content

Instantly share code, notes, and snippets.

Bob Spryn sprynmr

Block or report user

Report or block sprynmr

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
sprynmr / # sphinx-doc - 2018-07-18_00-16-00.txt
Created Jul 19, 2018
sphinx-doc on macOS 10.14 - Homebrew build logs
View # sphinx-doc - 2018-07-18_00-16-00.txt
Homebrew build logs for sphinx-doc on macOS 10.14
Build date: 2018-07-18 00:16:00
View ZoneLocalCache.swift
Copyright (C) 2018 Apple Inc. All Rights Reserved.
See LICENSE.txt for this sample’s licensing information
Zone local cache class, managing the zone local cache.
import Foundation
import CloudKit
View ReplayTesting.swift
//: Playground - noun: a place where people can play
// One way or another get RxSwift into your playground:
import PlaygroundSupport
PlaygroundPage.current.needsIndefiniteExecution = true
import RxSwift
// this is for testing using shareReplay for our network calls and any gotchas
View FunWithEnums.swift
// example json being mapped in
// {
// "pageName": "home", // string from a known set
// "slots": [ {
// "name": "homeTopSlot", // string from a known set, only found in the specific pageName
// "message": "Some message"
// },
// {
// "name": "bottomTopSlot", // ditto
// "message": "Some message"

Keybase proof

I hereby claim:

  • I am sprynmr on github.
  • I am bobspryn ( on keybase.
  • I have a public key ASDuZ3JsaaJjjU0s6B4Bp2fPxJAs37mj-vezcBGIsPjmoQo

To claim this, I am signing this object:

View tableChangeSet.m
- (NSDictionary *) generateChangeSetsForSection:(NSString *) section withNewObjects:(NSOrderedSet *) newObjects fromOldObjects:(NSOrderedSet *) oldObjects {
NSSet *newObjectsSet = [newObjects set];
NSSet *previousObjectsSet = [oldObjects set];
NSMutableSet *insertedObjects = [newObjectsSet mutableCopy];
[insertedObjects minusSet:previousObjectsSet];
NSMutableSet *deletedObjects = [previousObjectsSet mutableCopy];
[deletedObjects minusSet:newObjectsSet];
NSMutableSet *updatedObjects = [newObjectsSet mutableCopy];
[updatedObjects minusSet:insertedObjects];
[updatedObjects minusSet:deletedObjects];
View MVVMExample.m
// View Controller
- (void) viewDidLoad {
[super viewDidLoad];
RAC(self.viewModel, username) = [myTextfield rac_textSignal];
RACSignal *usernameIsValidSignal = RACObserve(self.viewModel, usernameValid);
sprynmr / untitled
Created Dec 4, 2014
Launch Services Error fix coming
View untitled
Just an update for you. We think we've tracked down the bug. I obviously can't give you an ETA on the fix landing, but I wanted to give you an alternative workaround. You can probably address this by deleting your project's BuiltProducts directory (or more specifically, the built .app bundle within it) between builds. Alternatively, if you don't change your Info.plist between builds, that will probably also not cause the problem to occur.
View signals.m
RACSignal *controlUpdate = [myButton rac_signalForControlEvents:UIControlEventTouchUpInside];
// signals for UIControl events send the control event value (UITextField, UIButton, UISlider, etc)
// subscribeNext:^(UIButton *button) { NSLog(@"%@", button); // UIButton instance }
RACSignal *textChange = [myTextField rac_textSignal];
// some special methods are provided for commonly needed control event values off certain controls
// subscribeNext:^(UITextField *textfield) { NSLog(@"%@", textfield.text); // "Hello!" }
RACSignal *alertButtonClicked = [myAlertView rac_buttonClickedSignal];
// signals for some delegate methods send the delegate params as the value
View networkSignal.m
RACSignal *networkSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
NetworkOperation *operation = [NetworkOperation getJSONOperationForURL:@"http://someurl"];
[operation setCompletionBlockWithSuccess:^(NetworkOperation *theOperation, id *result) {
[subscriber sendNext:result];
[subscriber sendCompleted];
} failure:^(NetworkOperation *theOperation, NSError *error) {
[subscriber sendError:error];
You can’t perform that action at this time.