____
/ /\ \
| |
\_\_ tt rr rr eee aaaa mmmmm
\ \ ttttt rrrr ee ee aa aa mm m m
__/ / tt rr eee a a mm m m
|___/ tt rr eeee aaaaa mm m m
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
| / # npm install hiredis | |
| npm WARN engine [email protected]: wanted: {"node":">= 0.8.0"} (current: {"node":"4.0.0-pre","npm":"2.14.2"}) | |
| > [email protected] install /node_modules/hiredis | |
| > node-gyp rebuild | |
| gyp ERR! configure error | |
| gyp ERR! stack Error: "pre" versions of node cannot be installed, use the --nodedir flag instead | |
| gyp ERR! stack at install (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:66:16) | |
| gyp ERR! stack at Object.self.commands.(anonymous function) [as install] (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js:66:37) |
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 spawn = require('child_process').spawn; | |
| var csp = require('js-csp'); | |
| class Math { | |
| constructor(readyCallback) { | |
| this._readyCallback = readyCallback; | |
| this._worker = spawn('6to5-node', ['worker.js']); | |
| this._worker.stderr.pipe(process.stderr); | |
| this._reqChan = csp.chan(); |
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
| #!/usr/bin/env node | |
| var path = require('path') | |
| var fs = require('fs') | |
| var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib'); | |
| require(lib + '/awslambda.js').start_runtime(); | |
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 util = require('util') | |
| var Readable = require('stream').Readable | |
| var request = require('request') | |
| var async = require('async') | |
| function PagingFetchStream(opts) { | |
| Readable.call(this, {objectMode: true}) | |
| opts = opts || {} | |
| this.getIdsUrl = opts.getIdsUrl |
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
| React = require 'react' | |
| {ul, li, div, h3, button, form, input} = React.DOM | |
| TodoApp = React.createClass | |
| getInitialState: -> | |
| items: @props.items | |
| text: '' |
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
| $ npm outdated -g | |
| npm http GET https://registry.npmjs.org/c-pm | |
| npm http GET https://registry.npmjs.org/bugger | |
| npm http GET https://registry.npmjs.org/buffet | |
| npm http GET https://registry.npmjs.org/coffee-script | |
| npm http GET https://registry.npmjs.org/froth | |
| npm http GET https://registry.npmjs.org/ecstatic | |
| npm http GET https://registry.npmjs.org/gh | |
| npm http GET https://registry.npmjs.org/jshint | |
| npm http GET https://registry.npmjs.org/express |
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'), | |
| Trunc = require('truncating-stream'), | |
| truncStream = new Trunc({limit: 10}), | |
| readStream = fs.createReadStream('/dev/random') | |
| readStream.on('end', function() { console.log('readStream ended') }) | |
| readStream.on('close', function() { console.log('readStream closed') }) | |
| readStream.pipe(truncStream).pipe(process.stdout) |
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
| (curl https://raw.github.com/bnoordhuis/node-profiler/master/tools/nprof-stub.js; \ | |
| for file in splaytree codemap csvparser consarray profile profile_view logreader tickprocessor tickprocessor-driver; \ | |
| do curl https://raw.github.com/joyent/node/$(node --version)/deps/v8/tools/$file.js; \ | |
| done) > nprof && chmod +x nprof |
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
| #!/bin/bash | |
| lastCommit="" | |
| editorCmd="sed -i ''" | |
| for commit in $@; do | |
| lastCommit=${commit:0:7} | |
| editorCmd="$editorCmd -e 's/pick ${lastCommit}/fixup ${lastCommit}/'" | |
| done | |
| GIT_SEQUENCE_EDITOR=$editorCmd git rebase -i ${lastCommit}~2 |