I hereby claim:
- I am joekr on github.
- I am joekratzat (https://keybase.io/joekratzat) on keybase.
- I have a public key whose fingerprint is 5A15 7CE4 86C8 9D90 9B64 452D F31D 8021 A7ED 1C26
To claim this, I am signing this object:
class Message < ActiveRecord::Base | |
belongs_to :recipient, :polymorphic => true | |
belongs_to :sender, :polymorphic => true | |
end |
I hereby claim:
To claim this, I am signing this object:
- (void)sortShortListUsingSelectedSortIndex{ | |
NSManagedObjectContext *context = [[AppDelegateiPad ad] managedObjectContext]; | |
NSFetchRequest *shortListRequest = [[NSFetchRequest alloc] init]; | |
[shortListRequest setEntity:[NSEntityDescription entityForName:@"Hip" inManagedObjectContext:context]]; | |
[shortListRequest setPredicate:[NSPredicate predicateWithFormat:@"%@ IN shortLists", self.shortList]]; | |
[NSFetchedResultsController deleteCacheWithName:nil]; | |
if(selectedSortIndex == 0){ | |
[shortListRequest setSortDescriptors:[NSArray arrayWithObjects:[NSSortDescriptor sortDescriptorWithKey:@"number" ascending:YES], nil]]; | |
}else{ |
/* | |
* Copyright 2012 Google Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
* use this file except in compliance with the License. You may obtain a copy of | |
* the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
/* | |
* Copyright 2012 Google Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
* use this file except in compliance with the License. You may obtain a copy of | |
* the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
require 'spec_helper' | |
describe "ad_spots/index" do | |
before(:each) do | |
assign(:ad_spots, [ | |
stub_model(AdSpot), | |
stub_model(User) | |
]) | |
end |
@interface DataController : NSObject | |
- (void) getSubscriptionFromServer onComplete:(void (^)(void)) completionBlock | |
onCancelled:(void (^)(void)) cancelBlock; | |
@end |
- (void) getSubscriptionFromServer { | |
// call out to server | |
if(success == ture){ | |
[[NSNotificationCenter defaultCenter] postNotificationName:@"getSubscriptionFromServerPassed" object:nil]; | |
} else{ | |
[[NSNotificationCenter defaultCenter] postNotificationName:@"getSubscriptionFromServerFailed" object:nil]; | |
} | |
} |
######################### | |
# .gitignore file for Xcode4 / OS X Source projects | |
# | |
# Version 2.0 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# | |
# 2013 updates: | |
# - fixed the broken "save personal Schemes" | |
# | |
# NB: if you are storing "built" products, this WILL NOT WORK, |
/path/to/unicorn/log/unicorn.stderr.log | |
/path/to/production/log/production.log | |
{ | |
daily | |
missingok | |
rotate 14 | |
compress | |
dateext | |
# this is important if using "compress" since we need to call |