Run this in one shell
./node_modules/.bin/mocha --debug-brk --compilers js:babel-register test/node
Then this in another shell
node-inspector
Then open the browser
function main() { | |
return { | |
DOM: Rx.Observable.timer(0, 1000) | |
.map(i => { | |
return { | |
tagName: 'h1', | |
children: [`Seconds elapsed ${i}`] | |
} | |
}) | |
} |
Rx.Observable.timer(0, 1000) | |
.map(i => `Seconds elapsed ${i}`) | |
.subscribe(text => { | |
const container = document.querySelector('#app'); | |
container.textContent = text; | |
}); |
import {Observable, Disposable} from 'rx'; | |
import {run} from '@cycle/core' | |
const jsondiffpatch = require('jsondiffpatch').create({ | |
objectHash: function(obj) { | |
return obj.name; | |
} | |
}); | |
function generateCurve(steps){ | |
var curve = new Float32Array(steps) |
var operators = [ | |
'\\.case', | |
'\\.create', | |
'\\.defer', | |
'\\.empty', | |
'\\.forkJoin', | |
'\\.from', | |
'\\.fromCallback', | |
'\\.fromEvent', | |
'\\.fromEventPattern', |
Run this in one shell
./node_modules/.bin/mocha --debug-brk --compilers js:babel-register test/node
Then this in another shell
node-inspector
Then open the browser
// Generic helper function that takes a main() (the top-level component) | |
// and wraps it with Stanga logic | |
function wrapWithStanga(main, initialState) { | |
return function (sources) { | |
const modProxy$ = new Subject(); | |
const modelSource = Model(initialState)(modProxy$); | |
sources.model = modelSource; | |
const sinks = main(sources); | |
sinks.model.subscribe(modProxy$); |
import xs from 'xstream'; | |
import Cycle from '@cycle/xstream-run'; | |
import {h, makeDOMDriver} from '@cycle/dom'; | |
require('aframe'); | |
function main(sources) { | |
let vdom$ = xs.periodic(16).startWith(0).map(i => | |
h('a-scene', [ | |
h('a-sphere', { | |
attrs: { |
function *main() { | |
const confirmRequest = { | |
type: 'confirm', | |
value: 'Are you sure?', | |
}; | |
const confirmResponse = yield confirmRequest; | |
if (confirmResponse === true) { | |
const consoleRequest = { | |
type: 'console', |
101com.com, 101order.com, 123found.com, 180hits.de, 180searchassistant.com, 1x1rank.com, 207.net, 247media.com, 24log.com, 24log.de, 24pm-affiliation.com, 2mdn.net, 2o7.net, 360yield.com, 4affiliate.net, 4d5.net, 50websads.com, 518ad.com, 51yes.com, 600z.com, 777partner.com, 77tracking.com, 7bpeople.com, 7search.com, 99count.com, a-ads.com, a-counter.kiev.ua, a.0day.kiev.ua, a.aproductmsg.com, a.collective-media.net, a.consumer.net, a.mktw.net, a.sakh.com, a.ucoz.net, a.ucoz.ru, a.xanga.com, a32.g.a.yimg.com, aaddzz.com, abacho.net, abc-ads.com, absoluteclickscom.com, abz.com, ac.rnm.ca, accounts.pkr.com.invalid, acsseo.com, actionsplash.com, actualdeals.com, acuityads.com, ad-balancer.at, ad-balancer.net, ad-center.com, ad-images.suntimes.com, ad-pay.de, ad-rotator.com, ad-server.gulasidorna.se, ad-serverparc.nl, ad-souk.com, ad-space.net, ad-tech.com, ad-up.com, ad.100.tbn.ru, ad.71i.de, ad.980x.com, ad.a8.net, ad.abcnews.com, ad.abctv.com, ad.about.com, ad.aboutit.de, ad.aboutwebservices.com, ad.abum.com, |