Skip to content

Instantly share code, notes, and snippets.

View egold's full-sized avatar
🐒
...

Eric Goldberg egold

🐒
...
View GitHub Profile
%w(app as).each do |role|
desc "Adds #{role} to the target roles for the task"
task(role) do
if ENV['ROLES']
ENV['ROLES'] += ",#{role}"
else
ENV['ROLES'] = role
end
end
end
@egold
egold / gist:300b0826b4a77aa0de35
Last active August 29, 2015 14:17 — forked from iwasrobbed/gist:5528897
Fixes incorrect variable on line 44
- (void)controllerWillChangeContent:(NSFetchedResultsController *)controller
{
self.shouldReloadCollectionView = NO;
self.blockOperation = [[NSBlockOperation alloc] init];
}
- (void)controller:(NSFetchedResultsController *)controller didChangeSection:(id<NSFetchedResultsSectionInfo>)sectionInfo
atIndex:(NSUInteger)sectionIndex forChangeType:(NSFetchedResultsChangeType)type
{
__weak UICollectionView *collectionView = self.collectionView;