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
git reset --hard # removes staged and working directory changes | |
git clean -f -d # remove untracked files | |
git clean -f -x -d # CAUTION: as above but removes ignored files like config. |
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
http://stackoverflow.com/questions/5714372/how-to-empty-caches-and-clean-all-targets-xcode-4 | |
Command-Option-Shift-K to clean out the build folder. Even better, quit Xcode and clean out ~/Library/Developer/Xcode/DerivedData manually. Remove all its contents because there's a bug where Xcode will run an old version of your project that's in there somewhere. (Xcode 4.2 will show you the Derived Data folder: choose Window > Organizer and switch to the Projects tab. Click the right-arrow to the right of the Derived Data folder name.) | |
In the simulator, choose iOS Simulator > Reset Content and Settings. | |
Finally, for completeness, you can delete the contents of /var/folders; some caching happens there too. |
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
https://makandracards.com/makandra/527-squash-several-git-commits-into-a-single-commit |
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
http://stackoverflow.com/questions/3910244/getting-current-device-language-in-ios |
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
- (void) loadView{ | |
[super loadView]; | |
[self initOulets:[self view]]; | |
[self customizeSubviews]; | |
} |
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
http://www.altinkonline.nl/tutorials/xcode/uiwebview/load-jquery-in-uiwebview/ |
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
http://www.xul.fr/javascript/parameters.html |
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
//BLOCKING DISSMISS POPOVER CLIKING OVER TAP WINDOW | |
//navPlaqueDetail.modalInPopover = YES; | |
//navPlaqueDetail.modalPresentationStyle = UIModalPresentationCurrentContext; |
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
http://stackoverflow.com/questions/4784575/how-do-i-find-the-most-recent-git-commit-that-modified-a-file |
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
http://crasseux.com/books/ctutorial/enum.html | |
typedef NS_OPTIONS(NSUInteger, ComponentOptions){ | |
ComponentOptionA = 0, | |
ComponentOptionB = 1 << 0, | |
ComponentOptionC = 1 << 1, | |
ComponentOptionD = 1 << 2, | |
ComponentOptionE = 1 << 3, | |
ComponentOptionF = 1 << 4, |
OlderNewer