- Run:
command+r
- Stop:
command+.
- Run without building:
command+control+r
- Test:
command+u
- Analyse:
command+shift+b
- Clean:
command+shift+k
- Super-clean:
command+alt+shift+k
This file contains 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
// Based upon: http://stackoverflow.com/a/13839284/439096 | |
#import <Foundation/Foundation.h> | |
@interface NSString (split) | |
@property (nonatomic, readonly) NSArray *split; | |
@end |
This file contains 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
# First install LWP | |
sudo cpan install LWP | |
# Then add some aliasses, add them to your shell's startup script | |
lwpOptions="-uUsSe" | |
alias GET="lwp-request -m GET $lwpOptions" | |
alias POST="lwp-request -m POST $lwpOptions" | |
alias HEAD="lwp-request -m HEAD $lwpOptions" | |
# Now use them: |
This file contains 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
toRemove='someDirectory/* bigFile.txt' | |
# Remove every file that matches $toRemove | |
git filter-branch -f --index-filter "git rm -rf --cached --ignore-unmatch $toRemove" --prune-empty -- --all | |
# Rebuild the history cache (does not seem to remove big file from the git caches... maybe not required) | |
rm -rf .git/refs/original/ && git reflog expire --all && git gc --aggressive --prune | |
# Make a clean clone |
This file contains 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
@interface MyViewController() | |
@property (nonatomic, assign) dispatch_source_t timer; | |
- (void)handleTimer; | |
@end | |
@implementation | |
@synthesize timer=timer_; | |
- (id)init { |
NewerOlder