This is a small snippet that gives Javascript arrays the (much-needed) ability to remove elements based on value. Example:
items = [1,2,3,3,4,4,5];
items.remove(3); // => [1,2,4,4,5]
var commands = []; | |
commands.push("git -v"); | |
commands.push("git -v"); | |
commands.push("git -v"); | |
commands.push("git -v"); | |
commands.push("git -v"); | |
commands.push("git -v"); | |
commands.push("git -v"); |
minion.define("easel.display", { | |
Bitmap : minion.extend("easel.DisplayObject", { | |
image: null, | |
snapToPixel: true, | |
init : function (imageOrUri) { | |
this.__super(imageOrUri); |
info it worked if it ends with ok | |
verbose cli [ 'node', '/usr/local/bin/npm', 'install', '[email protected]' ] | |
info using [email protected] | |
info using [email protected] | |
verbose config file /Users/taka.kojima/.npmrc | |
verbose config file /usr/local/etc/npmrc | |
verbose config file /usr/local/lib/node_modules/npm/npmrc | |
verbose caching /Users/taka.kojima/Projects/tmp/node_modules/ender/package.json | |
verbose loadDefaults [email protected] | |
verbose cache add [ '[email protected]', null ] |
This is a small snippet that gives Javascript arrays the (much-needed) ability to remove elements based on value. Example:
items = [1,2,3,3,4,4,5];
items.remove(3); // => [1,2,4,4,5]
####Requirements:
Scalable module system. Ability to easily create and maintain modules/components for use in projects.
Base boilerplate simplified & stripped down to bare essentials.
JavaScript based. This gives any frontend dev the ability to contribute easily if they so desire.
Dependency management without kludging up project repos. Config files and whatnot should be checked into the repo, actual node modules or other dependencies, should not.
var app = express.createServer(); | |
app.configure(function(){ | |
app.set('views', this.root_dir + "/" + this.template_dir); | |
app.set('view engine', this.template_engine); | |
app.use(express.bodyParser()); | |
app.use(express.methodOverride()); | |
app.use(app.router); | |
app.use(express.static(this.root_dir + "/" + this.static_dir)); | |
}); |