make sure to clone this gist!
then npm install
it
then run node example.js
if it doesn't work ping me on twitter (@isntitvacant) or irc (chrisdickinson in #pdxnode on freenode.net)
// transform an element + eventName into | |
// a stream of those DOMEvents over time. | |
function events(element, eventName, selector) { | |
var lastEvent | |
, nextRead | |
element.on(eventName, selector, onevent) | |
return {read: read} |
var repo = require('./index') | |
, path = require('path') | |
, dir = path.resolve( | |
__dirname | |
, '..' | |
, '..' | |
, 'personal' | |
, 'plate' | |
, '.git' | |
) |
package main | |
import "math" | |
import "container/list" | |
import "strconv" | |
//import "fmt" | |
import "os" | |
import "encoding/json" | |
import "runtime/pprof" |
var term = require('hypernal')() | |
term.appendTo(document.body); | |
var termEl = term.term.element | |
termEl.style['font'] = '13px Monaco, mono' | |
termEl.style.height = '100%' | |
termEl.style.padding = '5px' | |
termEl.style.overflow = 'auto' | |
termEl.style['white-space'] = 'pre' |
var voice = require('mespeak/voices/en/en-us.json') | |
, debounce = require('debounce') | |
, mespeak = require('mespeak') | |
var input = document.createElement('input') | |
mespeak.loadVoice(voice) | |
input.type = 'text' | |
input.style.padding = '12px 8px' |
var language = require('cssauron-falafel') | |
, concat = require('concat-stream') | |
, falafel = require('falafel') | |
, through = require('through') | |
, ls = require('ls-stream') | |
, path = require('path') | |
, fs = require('fs') | |
var methods = [ | |
Number |
module.exports = check_trailing_newline | |
var subsource = require('../utils/source') | |
// require blank newline after major statements | |
// and after blocks of expression statements. | |
function check_trailing_newline(node, errors, warnings, source) { | |
var body = Array.isArray(node.parent.body) ? node.parent.body : node.parent.body.body | |
, idx = body.indexOf(node) | |
, parent_src |
var shoe = require('shoe') | |
, fetch = require('git-fetch-pack') | |
, unpack = require('git-list-pack') | |
, through = require('through') | |
, Buffer = require('buffer').Buffer | |
// make a websocket connection to the | |
// server. | |
var conn = shoe('/git') | |
, client |
var lines = require('line-stream') | |
, through = require('through') | |
, emit = require('emit-function') | |
, duplex = require('duplex') | |
module.exports = json | |
function json(transport) { | |
var input = through(write) | |
, output = through(recv) |