To list all aliases on the environment
git config --get-regexp alias
Coloured tree view of git log
mongoexport --host localhost --db dbname --collection name --csv --out text.csv --fields foo,bar |
linters: | |
BangFormat: | |
enabled: true | |
space_before_bang: true | |
space_after_bang: false | |
severity: error | |
BemDepth: | |
enabled: false | |
max_elements: 1 |
/** | |
* IE8 JS does not support indexOf() | |
* here is my mock prototype for it. | |
*/ | |
if (!Array.prototype.indexOf) | |
{ | |
Array.prototype.indexOf = function(elt /*, from*/) | |
{ | |
var len = this.length >>> 0; | |
var from = Number(arguments[1]) || 0; |
#Bored of using this?
var foo = ['a', 'b', 'c'];
if( foo.indexOf('b') >= 0 ) {
console.log('Exists!')
}
##Use bitwise instead!