node web-host.js
In another terminal
node web-client.js
0 info it worked if it ends with ok | |
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', | |
1 verbose cli 'C:\\Users\\tyler\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js', | |
1 verbose cli 'un', | |
1 verbose cli 'lodash' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose npm-session 183b62c0437ca1ee | |
5 silly install loadCurrentTree | |
6 silly install readLocalPackageData |
#!/usr/bin/env bash | |
for version in $(npm view $1 --json | jq '.versions[]' -c -r); do | |
sha=$(npm view $1@$version --json | jq '.gitHead' -c -r) | |
echo Tagging $sha as v$version | |
git tag -a "v$version" $sha -m "Release v$version" | |
done |
'use strict' | |
const readline = require('readline') | |
const NORTH = 0b1000 | |
const SOUTH = 0b0100 | |
const EAST = 0b0010 | |
const WEST = 0b0001 | |
const ALL = 0b1111 |
'use strict' | |
const assert = require('assert') | |
const crypto = require('crypto') | |
module.exports = (min, max) => { | |
// borrowed from http://stackoverflow.com/a/33627342 | |
// figure out range and how many bytes required |
<!doctype html> | |
<html> | |
<head> | |
<meta charet="utf-8"/> | |
<style> | |
canvas { | |
image-rendering: crisp-edges; | |
margin: 5px; | |
} | |
canvas.horizontal { |
.git | |
node_modules | |
dist | |
public |
'use strict' | |
// error-prone work function | |
const _work = (name, failure_rate) => (thing) => | |
new Promise((resolve, reject) => { | |
setTimeout(() => { | |
if (Math.random() < failure_rate) { | |
console.log(`${name} failed - ${JSON.stringify(thing)}`) | |
reject(new Error(`${name} hit above ${failure_rate}`)) | |
} else { |
'use strict' | |
const { runMain, show } = require('bench') | |
const express = require('express'); | |
const Seneca = require('seneca'); | |
const SenecaWeb = require('seneca-web'); | |
const adapter = require('..'); | |
const Request = require('request') |
### Keybase proof | |
I hereby claim: | |
* I am tswaters on github. | |
* I am tswaters (https://keybase.io/tswaters) on keybase. | |
* I have a public key ASAm_89GCHVXoI95zX9hNRCPpZH-qf9RlS2mR4qQBBHWOgo | |
To claim this, I am signing this object: |