I hereby claim:
- I am webdesserts on github.
- I am webdesserts (https://keybase.io/webdesserts) on keybase.
- I have a public key whose fingerprint is EFEF AB55 BA03 4063 BB37 6F25 BD9D 259B A9DF DEE0
To claim this, I am signing this object:
// NOTE: I previously suggested doing this through Grunt, but had plenty of problems with | |
// my set up. Grunt did some weird things with scope, and I ended up using nodemon. This | |
// setup is now using Gulp. It works exactly how I expect it to and is WAY more concise. | |
var gulp = require('gulp'), | |
spawn = require('child_process').spawn, | |
node; | |
/** | |
* $ gulp server | |
* description: launch the server. If there's a server already running, kill it. |
I hereby claim:
To claim this, I am signing this object:
.code-block { | |
/* My special code block. Covers 90% of all use cases. */ | |
} |
var desserts = ['gelato', 'tiramisu', 'double chocolate volcano cake'] | |
// indexOf() is a nifty little Array method that returns the index of the element passed | |
desserts.indexOf('gelato') //=> 0 | |
// One oditty of it is that it returns -1 if there is no match. | |
desserts.indexOf('meatloaf') //=> -1 | |
// So the question arrises, "why -1"? |
var stream = require("stream"), | |
util = require("util"); | |
var LineSplitter = function LineSplitter(options) { | |
options = options || {}; | |
options.objectMode = true; | |
stream.Transform.call(this, options); | |
this.buffer = ""; | |
}; | |
util.inherits(LineSplitter, stream.Transform); |
{ | |
"name": "web-app", | |
"scripts": { | |
"build": "gulp build", | |
"start": "gulp serve", | |
"test": "gulp test" | |
}, | |
"devDependencies": { | |
"gulp": "~3" | |
} |