Skip to content

Instantly share code, notes, and snippets.

View goto-bus-stop's full-sized avatar
🇵🇸

Renée goto-bus-stop

🇵🇸
View GitHub Profile
/*! TACHYONS v4.9.0 | http://tachyons.io */
/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit;font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:
var html = require('./index')
var world = 'xyz'
var planet = [
document.createElement('strong')
]
planet[0].textContent = 'planet'
var res = html.render(Main(world, planet))
function Main (world, who) {
$ ./bin/cmd.js ~/Code/goto-bus-stop/genie-explorer/app.js -o /tmp/app.js
record: 5.228ms
deps: 2743.999ms
json: 14.801ms
unbom: 9.654ms
unshebang: 8.504ms
syntax: 107.028ms
sort: 23.823ms
dedupe: 5.755ms
@goto-bus-stop
goto-bus-stop / app.js
Created February 6, 2018 17:39
choo mount idea
var html = require('choo/html')
var choo = require('choo')
var app = choo()
app.use(countStore)
app.route('/', mainView)
module.exports = app.mount('body') // Mount & expose.
function mainView (state, emit) {
return html`
@goto-bus-stop
goto-bus-stop / example.js
Last active September 28, 2017 21:01
on-load with web components
var onload = require('./')
var el = document.createElement('div')
el = onload(el, function (a) {
console.log('mounting', a)
}, function (a) {
console.log('unmounting', a)
})
var b = document.body
@goto-bus-stop
goto-bus-stop / index.js
Created September 16, 2017 10:48
choo-async-route
var html = require('bel')
var log = require('nanologger')('async-route')
function defaultLoading () {
return html`<div>Loading ...</div>`
}
module.exports = function asyncRoute (opts) {
var load = opts.load
var loading = opts.loading || defaultLoading
(function(){
var _$browser_3 = {};
// shim for using process in browser
var process = _$browser_3 = {};
// cached from whatever global is present so that test runners that stub it
// don't break things. But we need to wrap it in a try catch in case it is
// wrapped in strict mode code which doesn't define any globals. It's inside a
// function because try/catches deoptimize in certain engines.
/* ******************************************************************* */
/* */
/* FenCrazyV6 */
/* [email protected] */
/* ******************************************************************* */
/* based upon: fenris_unknownB13.rms, fenris_crazymapv10.rms */
/* & ES@THE_UNKNOWN (c) Ensemble Studios */
/* ------------------------------------------------------------------- */
/* V1 changes/fixes (from unknownBx): */
/* * only 0 - 1 TC now instead of 0 - 3 TC's */
/**
* browserify /tmp/index.js -p browser-pack-flat/plugin
*/
(function(){var __module_4 = {};'use strict';
__module_4 = Number.isNaN || function (x) {
return x !== x;
};
var __module_2 = {};'use strict';
[package]
name = "imgview"
version = "0.1.0"
[[bin]]
name = "imgview"
path = "main.rs"
[dependencies]
clap = "2.24.2"