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
Show hidden characters
{ | |
"always_show_minimap_viewport": true, | |
"auto_complete": true, | |
"auto_complete_commit_on_tab": true, | |
"auto_complete_with_fields": true, | |
"auto_find_in_selection": true, | |
"binary_file_patterns": | |
[ | |
"*.dds", | |
"*.eot", |
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
[ | |
{ | |
"keys": ["ctrl+alt+t"], | |
"command": "terminal_view_open" | |
}, | |
{ | |
"keys": ["ctrl+shift+r"], | |
"command": "reveal_in_side_bar" | |
}, | |
{ |
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
# config file | |
.lesshintrc | |
.eslintrc | |
.jshintrc | |
.editorconfig | |
# Angular | |
/dist/* | |
/.tmp/* | |
/node_modules/ |
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
{ | |
"cmd": ["/Users/keshav.m/.nvm/versions/node/v6.11.4/bin/babel-node $file"], | |
"shell": true, | |
"selector": "*.js" | |
} |
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
{ | |
"cmd": ["node", "$file"], | |
"selector": "source.js" | |
} |
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
/*eslint no-unused-vars:0 */ | |
let alpha = ['a','b','c', {first: 'first'}]; | |
let beta = ['be', 'ta', { first: 'second'}]; | |
let more = {text:'more', date: new Date()}; | |
const gamma = [...alpha, more]; | |
console.log(gamma, alpha); |
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
let today = new Date(); | |
console.log(today); // return current Date 2017-11-02T09:34:04.471Z | |
// single argument | |
let arg1_positive = new Date(0); // or 100 any positive number return same | |
console.log("arg1_positive", arg1_positive); // return epoch time 1970-01-01T00:00:00.000Z | |
let arg1_negative = new Date(-1); // return provided number millisecond back from ecoch | |
console.log(arg1_negative); // return 1 millisecond before epoch time 1969-12-31T23:59:59.999Z |
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 branch in prompt | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[1;33m\]" | |
GREEN="\[\033[0;32m\]" | |
BLUE="\[\033[1;34m\]" | |
LIGHT_RED="\[\033[1;31m\]" |
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
{ | |
"fileExtensions": [".less", ".css"], | |
"excludedFiles": ["vendor.less"], | |
"spaceAfterPropertyColon": { | |
"enabled": true, | |
"style": "one_space" // Comments are allowed | |
}, | |
"singleLinePerSelector": false, |
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
{ | |
"browser": true, | |
"esnext": true, | |
"node": true, | |
"immed": true, | |
"globals" : { | |
"moment": true, | |
"angular": true, | |
"saveAs": true, | |
"require": true |