Skip to content

Instantly share code, notes, and snippets.

View yoshuawuyts's full-sized avatar

Yosh yoshuawuyts

View GitHub Profile
body {
padding: 2em;
}
[role=grid] + [role=grid] {
margin-top: 1em;
}
[role=grid] {
width: 100%;
// var diffSwap = require('myers-diff-array-swap')
var remove = require('remove-array-items')
var diff = require('myers-diff-array')
var assert = require('assert')
var morphNode = require('./lib/morph')
function Morph () {
this.results = []
this.swaps = []
var html = require('choo/html')
var choo = require('choo')
var app = choo()
app.use(require('choo-i18n')())
app.use((state, emitter) => {
// basic
emitter.emit('intl:string', {
en: {
var ansi = require('ansi-escape-sequences')
var eslint = require('eslint')
var path = require('path')
var os = require('os')
var HOME_OR_TMP = os.homedir() || os.tmpdir()
module.exports = ttyError
function ttyError (src, sub, err) {
var bankai = require('./')
var http = require('http')
var path = require('path')
var compiler = bankai(path.join(__dirname, 'example/index.js'), { watch: true })
http.createServer(function (req, res) {
if (req.url === '/index.html' || req.url === '/') {
compiler.documents('index.html', function (err, node) {
if (err) throw err
var html = require('choo/html')
var css = require('sheetify')
var choo = require('choo')
css('tachyons')
css`
.dg { display: grid }
.dig { display: inline-grid }
.dsg { display: subgrid }
var assert = require('assert')
window.__shared__require = window.__shared__require || {}
window.__shared__require__handlers = window.__shared__require__handlers || {}
var cache = window.__shared__require
var handlers = window.__shared__require__handlers = {}
exports.oncreate = function (name, cb) {
assert.equal(typeof name, 'string', 'shared-require: name should be type string')
#!/usr/bin/env node
var path = require('path')
var parse = require('minimist')
var browserify = require('browserify')
var args = parse(process.argv.slice(2))
var entries = args._
var output = args.o || args.output
var main = args.m || args.main
var url = args.url || output
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
onPush(function (event, register) {
var opts = {
body: 'Yay it works.',
data: 'https://developers.google.com/web/',
actions: [
{ action: 'like', title: 'like!' },
{ action: 'reply', title: 'reply!' }
]
}