This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## For bash or zsh: | |
# Opens the github page, issue, or new pull request for the current git repository in your browser | |
# Based on https://github.com/jasonneylon/dotfiles/ | |
function gh { | |
giturl=$(git config --get remote.origin.url) | |
if [ "$1" = "help" ]; then | |
echo "gh: Opens this repository's GitHub homepage." | |
echo "gh 123 246: Opens the page for issues or pull requests #123 and #246." | |
echo "gh issues: Opens the repository's issues." |