This file contains 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('bel') | |
var text = '<p>Some text</p>' | |
var el = html`<div>${text}</div>` | |
document.body.appendChild(el) |
This file contains 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 render = require('virtual-dom/create-element') | |
const sheetRouter = require('sheet-router') | |
const h = require('virtual-dom/h') | |
const router = sheetRouter(function (r, t) { | |
return [ | |
t('/foo/bar', function (params, h, state) { | |
return h('div', null, 'hello world') | |
}) | |
] |
This file contains 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'; | |
var PouchDB = require('pouchdb/[email protected]'); | |
var uuid = require('broofa/node-uuid'); | |
var xhr = require('yields/xhr'); | |
var Model = {}; | |
var db; | |
module.exports = Model; |
This file contains 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
<bpt_pattern id=header /> | |
<div class="DatesWrapper"> | |
<bpt_pattern id=dates /> | |
</div> | |
<div class="VenueWrapper"> | |
<bpt_pattern id=venue /> | |
</div> | |
<bpt_pattern id=footer /> |
This file contains 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
set mainview [view::create "/test.adp"] | |
# ::view::pattern::register mainview foo {i} | |
# ::view::pattern::register mainview bar {j} | |
# ::view::pattern::register mainview baz {} | |
for {set i 1} {$i <= 3} {incr i} { | |
set parent_id [::view::pattern::clone mainview foo [list $i]] | |
if {$i == 1} { |
This file contains 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
# | |
# "Wi-Fi" is the name of your internet service. View your OS X | |
# network settings to see a list of your services. | |
# | |
work-proxy () { | |
if [ "$1" == 'off' ]; then | |
networksetup -setsocksfirewallproxystate "Wi-Fi" off | |
kill $(ps aux | grep '[s]sh -Nf -D 7070 [email protected]' | awk '{print $2}') | |
else | |
ssh -Nf -D 7070 [email protected] |