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
# Motion commands | |
h - move left | |
j - move down | |
k - move up | |
l - move right | |
w - move to next word | |
b - move to beginning of word | |
e - move to end of word |
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
{ | |
"parser": "babel-eslint", | |
"rules": { | |
// best practices | |
"curly": [2, "multi-line"], | |
"dot-notation": 2, | |
"dot-location": [2, "property"], | |
"eqeqeq": [2, "allow-null"], | |
"guard-for-in": 2, | |
"no-caller": 2, |
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
function add(...n) { | |
let t = n.reduce((a, b) => a + b); | |
let a = add.bind(0, t); | |
a.valueOf = () => t; | |
return a; | |
} |
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
export PS1="\[\e[1;34m\]\u@\h\[\e[0m\]:\[\e[1;36m\]\W\[\e[0m\]$ " | |
alias ll="ls -ahlFG" | |
alias rmd="rm -rf" | |
alias fsize="stat -f%z" | |
alias finder="open -a Finder ./" | |
mcd() { mkdir "$1" && cd "$1"; } | |
gitr() { |
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
atom.commands.add 'atom-text-editor', | |
'easy-semicolon:end-line': (event) -> | |
editor = @getModel() | |
editor.moveToEndOfLine() | |
editor.insertText(';') |
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
/* | |
* jquery.tablesorter.js - a small table sorter jquery plugin | |
* Usage: | |
* $('table').tablesorter(); | |
* Options: | |
* $('table').tablesorter({ | |
* defaultSort: [0, 1] // initial sort - [<column index>, <1 (ascending) || -1 (descending)>] | |
* }); | |
* Action Triggers: | |
* $('table').trigger('update'); // to update the table when there are changes like addition/removal of <tr>/<td> |
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
{ | |
"name": "SampleWebpack", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"webpack": "./node_modules/.bin/webpack", | |
"bundle": "npm run webpack -- -p", | |
"start": "npm run webpack -- -d --watch" | |
}, |
NewerOlder