$ coffee
-bash: coffee: command not found
Macintosh-4:~ max$ npm install coffee-script -g
npm http GET https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/mkdirp
/usr/local/bin/coffee -> /usr/local/lib/node_modules/coffee-script/bin/coffee
/usr/local/bin/cake -> /usr/local/lib/node_modules/coffee-script/bin/cake
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
# I used a computer with 8 cores, 16gb ram and 8gb SSD swap | |
# Assumes user is named admin and you clone stuff to /home/admin | |
sudo apt-get update | |
sudo apt-get install -y build-essential git | |
vim /etc/apt/sources.list | |
# uncomment multiverse lines, save | |
sudo apt-get update | |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
# add to .bash_profile: | |
# export PATH=$PATH:/home/admin/depot_tools |
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 url = require('url') | |
var dtable = require('data-table') | |
var bxhr = require('binary-xhr') | |
var bcsv = require('binary-csv') | |
var concat = require('concat-stream') | |
var Buffer = require('buffer').Buffer | |
var insertCss = require('insert-css') | |
insertCss(dtable.css) |
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
> test-git@0.0.0 start /root/testcase/8548881 | |
> node index.js | |
push to http://localhost:5000/some_repo_name | |
DEBUG spawning git-receive-pack --stateless-rpc --advertise-refs /root/testcase/8548881/repos/foobar.git | |
DEBUG: http response write [ '001f# service=git-receive-pack\n0000' ] | |
DEBUG: http response write [ '00880000000000000000000000000000000000000000 capabilities^{}\u0000 report-status delete-refs side-band-64k quiet ofs-delta agent=git/1.8.1.2\n0000' ] | |
DEBUG git-receive-pack --stateless-rpc --advertise-refs /root/testcase/8548881/repos/foobar.git output: [ '00880000000000000000000000000000000000000000 capabilities^{}\u0000 report-status delete-refs side-band-64k quiet ofs-delta agent=git/1.8.1.2\n0000' ] | |
DEBUG spawning git-receive-pack --stateless-rpc /root/testcase/8548881/repos/foobar.git | |
DEBUG: http request write [ '00a50000000000000000000000000000000000000000 d866617994c48f075615416bd282e73214882c96 refs/heads/master\u0000 report-status side-band-64k agent=git/1.8.3.4.(Apple.Git-47)0000PACK\u0000\u0 |
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
stream._write = function (buf, enc, next) { | |
// dont send terminate signal | |
console.log('WRITE', [buf, buf.toString()]) | |
if (buf.length === 4 && buf[buf.length-1] === 48 | |
&& buf[buf.length-2] === 48 && buf[buf.length-3] === 48 | |
&& buf[buf.length-4] === 48) stream.needsPktFlush = true | |
else backend.push(buf) | |
if (backend._ready) next() | |
else stream._next = next; |
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 request = require('browser-request') | |
request('http://test.local:6461', function(err, resp, body) { | |
console.log('root', err, resp, body) | |
}) | |
request('http://test.local:6461/_package', function(err, resp, body) { | |
console.log('package', err, resp, body) | |
}) |
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 master = new (webkitAudioContext || AudioContext) | |
var jsynth = require('jsynth') | |
var url = require('url') | |
var bxhr = require('binary-xhr') | |
var bcsv = require('binary-csv') | |
var concat = require('concat-stream') | |
var Buffer = require('buffer').Buffer | |
var qs = url.parse(window.location.href, true).query | |
var csvUrl = qs.csv || 'https://raw.github.com/felixge/faster-than-c/master/figures/mysql-libs/results/mysql-libmysqlclient-1.5.1.tsv' |
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
require('aristotle') |
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 time = +Date.now() | |
var testId = 0 | |
console.log('TAP version 13') | |
tape.createStream({ objectMode: true }).on('data', function (row) { | |
if (row.type === 'test') { | |
console.log('# ' + row.name) | |
} | |
if (row.type === 'assert') { | |
testId++ |
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
require('console-log').show(true) | |
console.log('hello!') |
OlderNewer