Skip to content

Instantly share code, notes, and snippets.

@neonsamurai
neonsamurai / .tern-project
Created November 17, 2014 19:23
Tern project file for Meteor projects.
{
"libs": [
"browser",
"jquery",
"underscore"
],
"loadEagerly": [ "*.js", "*/*.js", "*/*/*.js", "*/*/*/*.js" ],
"dontLoad": [ ".meteor" ],
"plugins": {
"meteor": {}
@neonsamurai
neonsamurai / npm-debug.log
Created February 24, 2014 15:25
503s from registry.npmjs.org...
0 info it worked if it ends with ok
1 verbose cli [ '/home/tim/.nvm/v0.10.24/bin/node',
1 verbose cli '/home/tim/.nvm/v0.10.24/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'meteorite' ]
2 info using npm@1.3.21
3 info using node@v0.10.24
4 verbose cache add [ 'meteorite', null ]
5 verbose cache add name=undefined spec="meteorite" args=["meteorite",null]
@neonsamurai
neonsamurai / .tern-project.txt
Created February 20, 2014 20:56
Tern project file for Emacs Meteor Tern plugin. loadEagerly is needed, to make code navigation work properly.
{
"libs": ["browser", "underscore", "jquery"],
"plugins": {
"meteor": {}
},
"loadEagerly": ["*.js","*/*.js","*/*/*.js","*/*/*/*.js"],
"dontLoad": [".meteor", ".demeteorized"]
}
@neonsamurai
neonsamurai / getIndexByKeyValue
Created February 15, 2014 00:27
JavaScript: Get index of an object in an Array by key/value pair.
function getIdx(list, key, val){
return _.chain(list).pluck(key).indexOf(val).value();
}
@neonsamurai
neonsamurai / .jslintrc
Last active December 29, 2015 08:29
JSLint configuration for Meteor projects.
{
// JSLint Meteor Configuration File
// Match the Meteor Style Guide
//
// By @neonsamurai, forked from @raix with contributions from @aldeed and @awatson1978
//
"maxerr" : 20, // {int} Maximum error before stopping
// Enforcing