This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
{ '2:3': | |
{ w: 2000 | |
, h: 3000 | |
, x1: 0 | |
, y1: 0 | |
, x2: 200 | |
, y2 300 | |
} | |
} |
This file contains hidden or 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
/* global slate */ | |
slate.config('defaultToCurrentScreen', true) | |
slate.config('windowHintsShowIcons', true) | |
slate.config('windowHintsIgnoreHiddenWindows', false) | |
var hint = slate.operation('hint') | |
slate.bind('esc:ctrl', hint) | |
var fullScreen = slate.operation('push', { direction: 'top', style: 'bar-resize:screenSizeY' }) |
This file contains hidden or 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 thesaurus = require('thesaurus') | |
var words = 'Short tutorial on how to write like Russell Brand:\n\n1. Write an article\n2. Replace every word with a synonym from thesaurus.com'.split(' ') | |
console.log(words.map(function (word) { | |
var synonyms = thesaurus(word) | |
if (!synonyms.length) return word | |
return synonyms[0] | |
}).join(' ')) |
This file contains hidden or 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
async | |
backbone | |
brfs | |
browjadify | |
browserify | |
bunyan | |
bytes | |
cf-api | |
cf-auth-middleware | |
cf-auth-provider |
This file contains hidden or 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 moment = require('moment') | |
, View = require('ventnor') | |
, months = [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ] | |
, days = [ 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday' ] | |
function DatePickerView() { | |
View.apply(this, arguments) | |
this.startYear = 1960 | |
this.endYear = 2030 | |
this.currentView = { month: 11, year: 2014 } |
This file contains hidden or 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
// | |
// ANYTIME DATE/TIME PICKER | |
// ============= | |
// | |
// | |
// -- Essential styles -- | |
// These styles are the bare minimum to have a working date/time picker. | |
// These are copied and converted to stylus from | |
// https://github.com/bengourley/anytime/blob/master/anytime.css |