Skip to content

Instantly share code, notes, and snippets.

View jparishy's full-sized avatar

Julius Parishy jparishy

View GitHub Profile
RACSignal *entriesSignal = [self.apiClient getPath:@"api/for/cool/stuff/" parameters:nil resultClass:FTEntry.class];
[entriesSignal subscribeNext:^(NSArray *entries) {
for(FTEntry *entry in entries)
{
NSLog(@"Status: %@", entry.status);
}
} error:^(NSError *error) {
RACSignal *usernameSignal = self.usernameTextField.rac_textSignal;
RACSignal *passwordSignal = self.passwordTextField.rac_textSignal;
RAC(self.loginButton.enabled) = [[RACSignal combineLatest:@[ usernameSignal, passwordSignal]] map:^id(RACTuple *values) {
RACTupleUnpack(NSString *username, NSString *password) = values;
return @(![username isEqualToString:@""] && ![password isEqualToString:@""]);
}];
2012-11-28 01:35:26.327 gcd-sync-deadlock[93702:303] Warning: Attempted to call dispatch_sync/dispatch_barrier_sync from queue (<OS_dispatch_queue: outer-queue[0x10010a7e0]>) that was previously invoked from itself
2012-11-28 01:35:26.329 gcd-sync-deadlock[93702:303] Warning: Preventing a recursive dispatch_barrier_sync from queue (<OS_dispatch_queue: outer-queue[0x10010a7e0]>)
2012-11-28 01:35:26.331 gcd-sync-deadlock[93702:303] calculatedProperty: (null) wrapping Inner
@jparishy
jparishy / gist:4146844
Created November 26, 2012 06:29
Fun with map/fold/filter in Objective-C; basic implementations of basic functional... functions
#import <Foundation/Foundation.h>
typedef id (^MapFunctorType)(id object);
id map_base(MapFunctorType fn, id<NSFastEnumeration> collection, Class mutableCollectionType)
{
id outCollection = [[mutableCollectionType alloc] init];
for(id object in collection)
@jparishy
jparishy / gist:4146842
Created November 26, 2012 06:28
Fun with map/fold/filter in Objective-C; basic implementations of basic functional... functions
#import <Foundation/Foundation.h>
typedef id (^MapFunctorType)(id object);
id map_base(MapFunctorType fn, id<NSFastEnumeration> collection, Class mutableCollectionType)
{
id outCollection = [[mutableCollectionType alloc] init];
for(id object in collection)

I've been in this boat, so maybe I can help a bit.

I went to a university for about three months before ultimately deciding to leave to pursue a job offer at a company I had applied to. I didn't actually end up going to that company because it was in San Francisco and I wanted to stay in my home state, but I did get a matching offer from the employer I had been with prior to leaving for school. It has been a year since then and it has been incredible and exciting but there certainly are downsides to choosing this lifestyle.

  1. It is exhausting. I went through high school without exerting very much effort and the most challenging experiences I had were my job outside of school or related a girl or some other social drama. However, at the time it was very clear between me and my employer that I was still in high school and that it came first so I always had an excuse if I needed a break or just some time relax or cool off. Once I had signed my full-time employment contract that understanding was thrown off a
I've been in this boat, so maybe I can help a bit.
I went to a university for about three months before ultimately deciding to leave to pursue a job offer at a company I had applied to. I didn't actually end up going to that company because it was in San Francisco and I wanted to stay in my home state, but I did get a matching offer from the employer I had been with prior to leaving for school. It has been a year since then and it has been incredible and exciting but there certainly are downsides to choosing this lifestyle.
1. It is exhausting. I went through high school without exerting very much effort and the most challenging experiences I had were my job outside of school or related a girl or some other social drama. However, at the time it was very clear between me and my employer that I was still in high school and that it came first so I always had an excuse if I needed a break or just some time relax or cool off. Once I had signed my full-time employment contract that understanding was thrown off a

I've been in this boat, so maybe I can help a bit.

I went to a university for about three months before ultimately deciding to leave to pursue a job offer at a company I had applied to. I didn't actually end up going to that company because it was in San Francisco and I wanted to stay in my home state, but I did get a matching offer from the employer I had been with prior to leaving for school. It has been a year since then and it has been incredible and exciting but there certainly are downsides to choosing this lifestyle.

  1. It is exhausting. I went through high school without exerting very much effort and the most challenging experiences I had were my job outside of school or related a girl or some other social drama. However, at the time it was very clear between me and my employer that I was still in high school and that it came first so I always had an excuse if I needed a break or just some time relax or cool off. Once I had signed my full-time employment contract that understanding was thrown off a
I've been in this boat, so maybe I can help a bit.
I went to a university for about three months before ultimately deciding to leave to pursue a job offer at a company I had applied to. I didn't actually end up going to that company because it was in San Francisco and I wanted to stay in my home state, but I did get a matching offer from the employer I had been with prior to leaving for school. It has been a year since then and it has been incredible and exciting but there certainly are downsides to choosing this lifestyle.
1. It is exhausting. I went through high school without exerting very much effort and the most challenging experiences I had were my job outside of school or related a girl or some other social drama. However, at the time it was very clear between me and my employer that I was still in high school and that it came first so I always had an excuse if I needed a break or just some time relax or cool off. Once I had signed my full-time employment contract that understanding was thrown off
(function() {
app = {
minimal: new Minimal(),
documentWasLoaded: function() {
body = this.minimal.DOM.element("body");
body.style.cssText = "background-color:black;";