Copyright 2014 by Intellectual Reserve, Inc.
Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0
Author: Adam Carson Dependencies: None
Copyright 2014 by Intellectual Reserve, Inc.
Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0
Author: Adam Carson Dependencies: None
// only gets the LAST table | |
var http = require('http') | |
var fs = require('fs') | |
var trumpet = require('trumpet') | |
var tr = trumpet() | |
tr.selectAll('#content .box-content table', function (table) { | |
table.createReadStream().pipe(fs.createWriteStream('output.html')) |
// only gets the FIRST table | |
var http = require('http') | |
var fs = require('fs') | |
var trumpet = require('trumpet') | |
var tr = trumpet() | |
var output = fs.createWriteStream('output.html') | |
var input = tr.selectAll('#content .box-content table').createReadStream() |
var hs = require('hyperstream') | |
console.log(hs.select) |
// (on the server command line, get certificate files) | |
// git clone https://github.com/letsencrypt/letsencrypt | |
// cd letsencrypt | |
// ./letsencrypt-auto certonly | |
// (in the web server directory) | |
// vim index.js | |
var https = require('https') | |
var fs = require('fs') |
//* to toggle, add or remove forward slash (first block on = //*, first block off = /*) | |
var direction = 'left', coord = 'X' | |
console.log(direction, coord) | |
/*/ | |
var direction = 'top', coord = 'Y' | |
console.log(direction, coord) | |
//*/ |
Using [rdce](https://github.com/dirk/rdce) with `browserify`d files. | |
Edit file to be monitored. | |
Add `_rdce.report()` in location where will be called after action. | |
- Use `then` if needing to follow promises. | |
`browserify` file. | |
`rdce` file. | |
Open console in browser. | |
Run app with `rdce`d file. |
var h = require('virtual-dom/h') | |
var diff = require('virtual-dom/diff') | |
var pv = require('virtual-dom-patch-viewer') | |
vdom1 = h('div', [ | |
h('div', 'div stuff'), | |
h('img', {src: 'keepme.png'}) | |
]) | |
vdom2 = h('div', [ |
DOM$ | |
.flatMapLatest(view => | |
Observable | |
.fromCallback(requestAnomationFrame)() | |
.map(view) | |
) |
var h = require('virtual-dom/h') | |
var diff = require('virtual-dom/diff') | |
var pv = require('virtual-dom-patch-viewer') | |
vdom1 = h('div', [ | |
h('div', 'div stuff'), | |
h('a', {href: 'other.html'}) | |
]) | |
vdom2 = h('div', [ |