I hereby claim:
- I am colingourlay on github.
- I am colingourlay (https://keybase.io/colingourlay) on keybase.
- I have a public key whose fingerprint is B491 C16D 2665 A596 4678 1F39 A05D E064 F67F 672F
To claim this, I am signing this object:
require('pointer-css-variables')(); | |
// Look at <head> tab to see CSS using variables | |
// to display coordinates at the cursor |
const chooet = require('chooet'); | |
const html = require('chooet/html'); | |
chooet(choo => { | |
app = choo(); | |
app.model({ | |
state: { title: 'Not quite set yet' }, | |
reducers: { | |
update: (data, state) => ({ title: data }) |
const chooet = require('chooet'); | |
const html = require('chooet/html'); | |
chooet(choo => { | |
app = choo(); | |
app.model({ | |
state: { title: 'Not quite set yet' }, | |
reducers: { | |
update: (data, state) => ({ title: data }) |
I hereby claim:
To claim this, I am signing this object:
const CHARSET = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz$_'; | |
const MASK = parseInt('111100', 2); | |
let guesses = [...Array(11)].map((item, index) => { | |
return Math.floor(Math.random() * 4); | |
// return index % 4; | |
}); | |
console.log(guesses); |
made with esnextbin
I have been watching the current discussions about running a virtual DOM in a web worker with a great deal of interest. In 2011, I built a research project, [Treehouse][] ([USENIX Talk][] ([DOMTRIS][] demo at 20:25), [paper][]), which ran a hacked-up version of jsdom in a worker. My goal was fine-grained containment of untrusted scripts, while still providing access to browser APIs that existing code expected.
Treehouse achieved a small amount of influence in academic circles, but it had problems and was ultimately unsuccessful. Virtual DOMs were not a widespread or well-understood idea at the time, so the advantages of running one in a worker
var hyperstyles = require('hyperstyles'); | |
var styles = { /* Mock CSS Module */ | |
'root': 'Car__root___fg434', | |
'front-door': 'Car__front-door___b85f9', | |
'back-door': 'Car__back-door___p9h7j' | |
}; | |
var crel = hyperstyles(require('crel'), styles); | |
function render() { | |
return crel('div.root', |
var vdom = require('virtual-dom'); | |
var hyperx = require('hyperx'); | |
var hyperstyles = require('hyperstyles'); | |
var styles = { /* Mock CSS Module */ | |
'root': 'Car__root___fg434', | |
'front-door': 'Car__front-door___b85f9', | |
'back-door': 'Car__back-door___p9h7j' | |
}; | |
var hx = hyperx(hyperstyles(vdom.h, styles)); |