This file contains hidden or 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 setTimeout = require('timers').setTimeout; | |
| var work = 0; | |
| console.log('version: ' + process.version); | |
| if (typeof gc === 'undefined') { | |
| throw new Error('run node foo.js --expose-gc'); | |
| } |
This file contains hidden or 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 diff = require('virtual-dom/diff'); | |
| var patch = require('virtual-dom/patch'); | |
| var h = require('virtual-dom/h'); | |
| var createElement = require('virtual-dom/create-element'); | |
| var virtualize = require('vdom-virtualize'); | |
| // 1: Create a function that declares what the DOM should look like | |
| function render(count) { | |
| // var html = '<div id="test">Count is <span>' + count + '</span></div>'; | |
| //return virtualize.fromHTML(html); |
This file contains hidden or 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 h = require("virtual-hyperscript"); | |
| // Children as arguments[2] | |
| h("div", { | |
| "aria-hidden": true, | |
| "ev-click": onClick, | |
| }, [ | |
| h("p", { | |
| "aria-hidden": true, |
This file contains hidden or 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
| # use ImageMagick convert | |
| # the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf | |
| convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf |
OlderNewer