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
const w = require('global/window') | |
const d = require('global/document') | |
const yo = require('yo-yo') | |
const css = require('sheetify') | |
const {pipe, through} = require('mississippi') | |
const {start} = require('@ishiduca/snoopy') | |
css('./css/bulma.css') | |
const root = yo`<div></div>` |
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
const d = require('global/document') | |
const yo = require('yo-yo') | |
const router = require('./browser') | |
const {pipe, through} = require('mississippi') | |
const {start} = require('@ishiduca/snoopy') | |
const {views} = start( | |
router({ | |
init () { | |
return { | |
model: { |
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 strict' | |
const fs = require('fs') | |
const path = require('path') | |
const request = require('hyperquest') | |
const {pipe, through} = require('mississippi') | |
const input = path.join(__dirname, 'feeds/feed.txt') | |
const output = path.join(__dirname, 'feeds/feed-filtered.txt') | |
const headers = {'user-agent': 'feedr'} |
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
module.exports = { | |
init: function () { return {model: null} }, | |
update: function (model, action) { return {model: model} }, | |
view: function () { return null }, | |
run: function () { return null } | |
} |
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 xtend = require('xtend') | |
module.exports = combine | |
function combine (a, b) { | |
return function () { | |
return xtend(a.apply(null, arguments), b.apply(null, arguments)) | |
} | |
} |
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
module.exports = { | |
init: init, | |
update: update, | |
view: view, | |
run: run | |
} | |
function init () { return {model: null} } | |
function update (model) { return {model: model} } | |
function view () { return null } |
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
module.exports = (emitter, proxy) => { | |
emitter.on('updateMessage', mes => (proxy.message = mes)) | |
} |
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 yo = require('yo-yo') | |
var xtend = require('xtend') | |
var types = { | |
button: 0, | |
checkbox: 0, | |
color: 0, | |
date: 1, | |
'datetime-local': 1, | |
email: 1, | |
file: 0, |
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 strict' | |
const path = require('path') | |
const http = require('http') | |
const xtend = require('xtend') | |
const valid = require('is-my-json-valid') | |
const validate = valid(require('./schema')) | |
const ecstatic = require('ecstatic')(path.join(__dirname, 'static')) | |
const websocket = require('websocket-stream') | |
const router = require('router-on-websocket-stream') | |
const r = router() |