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.$); | |
} |
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
# 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
- 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
/* | |
* 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
# 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
node_modules/ | |
bower_components/ | |
*.log | |
build/ | |
dist/ | |
########################################################## | |
# ignore everything inside this directory |
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 and copy the: file name, hash of change | |
git whatchanged | |
# show the diff | |
# e.g. git diff ee11453 src/js/my-module.js | |
git diff <hash> <path/filename> | |
# when you see this: @@ -26,31 +26,31 @@ | |
# "-26" is the line number, | |
# "31" is the number of lines changed |
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
# spin up node-inspector, here i'm pointing it to a specific port | |
node-inspector --web-port=8081 | |
# open another terminal, start the node app with the --debug-brk option | |
# to create a breakpoint on line 1 of your app | |
node --debug-brk ./app.js | |
# if debugging Gruntfile.js with Windows, use: | |
node --debug-brk c:\Users\<username>\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt <taskname> |
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
# mklink /j <directory/shortcut name> <directory to create the link to> | |
mklink /j OPUSConfirmationsTrunk_v2.0 C:\Users\grobles4\workspace\OPUSConfirmationsTrunk_v2.0 |
NewerOlder