pressure-stream
- call an async function. manage concurrency as backpressure.
pub-sub-duplex
pressure-stream
pub-sub-duplex
var UTF8_MASK = [0x80,0xc0,0xe0,0xf0]; | |
function utf8l(b){ | |
if (!(b & 0x80)) { | |
return 1; | |
} else if ((b & 0xE0) === 0xC0){ | |
return 2; | |
} else if ((b & 0xF0) === 0xE0) { | |
return 3; |
I hereby claim:
To claim this, I am signing this object:
var pinoccio = require('pinoccio'); | |
var util = require('util'); | |
var style = require('style-dom'); | |
var term = require('hypernal')(); | |
var url = require('url'); | |
var colors = require('colors'); | |
var parsed = url.parse(window.location.href,true); | |
var token = (parsed.query||{}).token||"e113fa4270ae050a0c706d29eca5ad25"; |
<!DOCTYPE html> | |
<html> | |
<head></head> | |
<body> | |
<h1>Chipmunks!</h1> | |
<div id="graph"> | |
</div> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> |
{ | |
"name": "pinoccio-couch-example", | |
"description": "couch example for saving pinoccio stats", | |
"version": "0.0.0", | |
"repository": { | |
"url":"https://gist.github.com/c11d6ae6f4bead140838.git" | |
}, | |
"main": "index.js", | |
"scripts": { | |
"test": "tape test/*.js" |
var bs = require('binary-search'); | |
console.log(bs); |
var foot = function(){ | |
/* | |
<div>footer</div> | |
*/ | |
} | |
var index = function fn(){ | |
/* | |
<!DOCTYPE html> | |
<html> |
# to setup pinoccio bridge on boot | |
# this starts bridge and keeps it running if it crashes. | |
# if there are no scouts connected it will retry once per second. | |
# log data is written to /var/log/pinoccio-bridge.log | |
# for verbose logging change `pinoccio bridge` to `pinoccio bridge -v` | |
echo "while [ 1 ]\ | |
do\ | |
pinoccio bridge\ |
# note run this as your pi user. | |
wget https://pinocc.io/prebuilt/client-node-pinoccio_0.1.29.tar.gz && tar -xvf client-node-pinoccio_0.1.28.tar.gz && cd pinoccio && npm rebuild && sudo npm link --production |