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
body { | |
padding: 2em; | |
} | |
[role=grid] + [role=grid] { | |
margin-top: 1em; | |
} | |
[role=grid] { | |
width: 100%; |
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 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 = [] |
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 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: { |
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 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) { |
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 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 |
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 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 } |
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
#!/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.
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
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!' } | |
] | |
} | |