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
var Emitter = require('events').EventEmitter | |
function task(options, cb) { | |
var emitter = new Emitter() | |
emitter.emit('log', 'Starting stuff', 'info') | |
emitter.emit('log', 'Fine grained detail about stuff', 'debug') | |
cb(null) | |
return emitter | |
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
<!-- | |
The global bundle is | |
required on all pages | |
--> | |
<script src="global-bundle.min.js"></script> | |
<!-- | |
Include specific page-related | |
bundles here: | |
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
var fs = require('fs') | |
, join = require('path').join | |
fs.watch(join(process.env.HOME, '.npmrc'), function () { | |
console.log('touched') | |
}) | |
fs.utimes(join(process.env.HOME, '.npmrc'), new Date(), new Date()) |
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
$ node build | |
// And maybe use an options parser, eg: https://github.com/substack/node-optimist | |
// to configure piler through `piler.set('key', val)` options through cli: | |
$ node build --watch | |
$ node build --env development |
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
var stylus = require('stylus') | |
, nib = require('nib') | |
, uglify = require('uglifyjs') | |
function processStylus(input, cb) { | |
fs.readFile(input.src, function (err, data) { | |
if (err) return cb(err) |
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
[1:57pm] AvianFlu: | |
bengourley: from the looks of it, st is just very buggy | |
[1:59pm] redir_ joined the chat room. | |
[2:03pm] jetienne left the chat room. (Quit: jetienne) | |
[2:03pm] bradleymeck joined the chat room. | |
[2:03pm] bradleymeck was granted voice by kohai. | |
[2:06pm] sreeix left the chat room. (Quit: sreeix) | |
[2:07pm] TheJH left the chat room. (Ping timeout: 268 seconds) | |
[2:10pm] Sly: | |
Everyone doing okay in here? Need any help? |
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
<!-- | |
| Pagination | |
| ========== | |
--> | |
<div class="pagination"> | |
<!-- If used with search results, include a summary to give indication of the total amount of results --> | |
<p class="pagination-summary">Showing <strong>1</strong> to <strong>10</strong> of <strong>60</strong> results.</p> |
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
info: Welcome to Nodejitsu bengourley | |
info: jitsu v0.9.8 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command logs app | |
info: Attempting to load logs for /Users/bengourley/Projects/iowmcc-cms/package.json | |
info: Listing logs for iowmcc | |
[10/24 12:21:32 GMT+0100] 2012-10-24T11:21:31.634Z - info: GET /favicon.ico 404 4ms - 1kb | |
[10/24 12:21:32 GMT+0100] 2012-10-24T11:21:31.295Z - info: GET /static/images/v0.1.0/logo.png 404 4ms - 1kb | |
[10/24 12:21:31 GMT+0100] 2012-10-24T11:21:30.891Z - info: Finding 'article' live=true, | |
[10/24 12:21:31 GMT+0100] 2012-10-24T11:21:30.922Z - info: GET / 200 36ms - 5.21kb |
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
^Cponse.writeHead (http.js:980:45) | |
at ServerResponse.res.writeHead (/Users/bengourley/Projects/ctrl/node_modules/express/node_modules/connect/lib/patch.js:75:22) | |
at ServerResponse._implicitHeader (http.js:931:8) | |
at ServerResponse.OutgoingMessage.end (http.js:766:10) | |
at next (/Users/bengourley/Projects/ctrl/node_modules/express/node_modules/connect/lib/proto.js:149:13) | |
at pass (/Users/bengourley/Projects/ctrl/node_modules/express/lib/router/index.js:108:24) | |
at nextRoute (/Users/bengourley/Projects/ctrl/node_modules/express/lib/router/index.js:101:7) | |
at callbacks (/Users/bengourley/Projects/ctrl/node_modules/express/lib/router/index.js:164:11) | |
at callbacks (/Users/bengourley/Projects/ctrl/node_modules/express/lib/router/index.js:167:9) | |
at callbacks (/Users/bengourley/Projects/ctrl/node_modules/express/lib/router/index.js:167:9) |
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
info: Creating snapshot 0.1.0-41 | |
info: Updating app iowmcc | |
info: Activating snapshot 0.1.0-41 for iowmcc | |
info: Starting app iowmcc | |
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error | |
error: | |
error: There was an error while attempting to start the app | |
error: Error spawning drone | |
error: Script prematurely exited |