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
| # find the file w/path you want to revert | |
| find <a-parent-directory-of-file> -name "<name-of-file>" | |
| # get all commits (hashes) where changes were done to this specific file | |
| git log --abbrev-commit --pretty=oneline <path-to-your-file> | |
| # revert this file (while keeping changes in the history) to this hash | |
| git checkout <hash> <path-to-your-file> | |
| # do a 'git add' and 'git commit' |
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
| /* | |
| * How to use: | |
| * var modal = new Modal({ | |
| * modalBackground: $('#manual-mode-modal'), | |
| * modalDialog: $('#manual-mode-modal-wrapper') | |
| * }); | |
| * | |
| * modal.openModal(); | |
| * modal.closeModal(); | |
| */ |
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
| - Column Selection: Right Mouse Button + Shift | |
| - GoTo Anything: Ctrl + P | |
| - GoTo Line Number: : | |
| - GoTo Function Declaration: @ | |
| - GoTo Term: # | |
| - Sidebar: Ctrl + K, Ctrl + B | |
| - Delete line: Ctrl + Shift + K | |
| - Move line up/down: Ctrl + Shift + Up/Down |
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
| # http://www.cyberciti.biz/faq/linux-command-line-run-in-background/ | |
| # http://superuser.com/questions/198525/how-can-i-execute-a-windows-command-line-in-background | |
| # Linux | |
| <command> & | |
| # Windows | |
| START /MIN <program-name-goes-here> |
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
| # Git view commit history and the diff's of the commits. | |
| # Will show you the same content as "git log" plus the diff of the | |
| # changes in that commit. | |
| git whatchanged -p |
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
| (function(scope, undefined){ | |
| var factory = function($){ | |
| $.fn.pluginName = function() {}; | |
| }; | |
| // Set in scope if jquery is already there | |
| if (scope.jQuery !== undefined || scope.$ !== undefined) { | |
| factory(scope.jQuery || scope.$); | |
| } |
OlderNewer