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
info: Change detected at 10:56:21 delete /Users/awilhelm/dev/berlinjs.org/src/documents/talks/2014-02-20-My-title----.html.md | |
error: An error occured: | |
TypeError: Cannot call method 'isDirectory' of null | |
at _Class.changeHandler (/Users/awilhelm/dev/berlinjs.org/node_modules/docpad/out/lib/docpad.js:3600:61) | |
at _Class.EventEmitter.emit (events.js:106:17) | |
at _Class.bubble (/Users/awilhelm/dev/berlinjs.org/node_modules/docpad/node_modules/watchr/out/lib/watchr.js:177:19) | |
at _Class.bubble (/Users/awilhelm/dev/berlinjs.org/node_modules/docpad/node_modules/watchr/out/lib/watchr.js:4:61) | |
at _Class.watchr.children.(anonymous function).watch.listeners.change (/Users/awilhelm/dev/berlinjs.org/node_modules/docpad/node_modules/watchr/out/lib/watchr.js:490:36) | |
at _Class.EventEmitter.emit (events.js:106:17) | |
at _Class.bubble (/Users/awilhelm/dev/berlinjs.org/node_modules/docpad/node_modules/watchr/out/lib/watchr.js:177:19) |
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
// buggy when switch multiple times (js2coffee, coffee2js, js2coffee, ...) | |
foo = "bar" | |
// avoid the bug | |
main.foo = "bar"; | |
// example for variable shadowing | |
var x = 0; | |
main.f = function(err, res) { | |
var x = 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
ok (cached soundfont) | |
192.168.178.34 - - [15/Apr/2014 23:59:31] "GET /demo-Basic.html HTTP/1.1" 200 - | |
192.168.178.34 - - [15/Apr/2014 23:59:31] "GET /js/MIDI/AudioDetect.js HTTP/1.1" 200 - | |
192.168.178.34 - - [15/Apr/2014 23:59:31] "GET /js/MIDI/LoadPlugin.js HTTP/1.1" 200 - | |
192.168.178.34 - - [15/Apr/2014 23:59:31] "GET /js/MIDI/Plugin.js HTTP/1.1" 200 - | |
192.168.178.34 - - [15/Apr/2014 23:59:31] "GET /js/MIDI/Player.js HTTP/1.1" 200 - | |
192.168.178.34 - - [15/Apr/2014 23:59:31] "GET /js/Window/DOMLoader.XMLHttp.js HTTP/1.1" 200 - | |
192.168.178.34 - - [15/Apr/2014 23:59:31] "GET /inc/Base64.js HTTP/1.1" 200 - | |
192.168.178.34 - - [15/Apr/2014 23:59:31] "GET /inc/base64binary.js HTTP/1.1" 200 - |
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
# query blog items and main nav items | |
# this doesn't work, I only get the blog items | |
findFullNav: (lang) -> | |
@getDatabase().findAllLive | |
$or: | |
$and: | |
mainNav: {$exists: true} | |
relativeOutDirPath: | |
$startsWith: lang |
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
describe 'palindrome checker', -> | |
it 'should work for unicode characters (chinese)', (done) -> | |
expect(palindromChecka "楚人楚").to.equal true | |
done() | |
# http://apps.timwhitlock.info/emoji/tables/unicode | |
it 'should work with 3 byte unicode chars (emoji, unicode)', (done) -> | |
expect(palindromChecka "\u2764").to.equal true | |
done() |
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
𝄞 | |
//from http://de.wikipedia.org/wiki/Utf8#Kodierung | |
Char Unicode Unicode binary UTF-8 binary UTF-8 hex | |
Violinschlüssel 𝄞 U+1D11E 00000001 11010001 00011110 11110000 10011101 10000100 10011110 F0 9D 84 9E |
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 createManifest = require('component-manifest')(this); | |
debugger; | |
var manifestGenerator = createManifest(); | |
var tmp = manifestGenerator(localBranch); | |
while (tmp.done === false) { | |
tmp = tmp.next(); | |
} | |
var manifest = tmp.value; |
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
{ | |
externalArray: [ | |
{id: 1, name: "foo"}, | |
{id: 2, name: "bar"}, | |
{id: 3, name: "qux"} | |
] | |
} |
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
component-bind function binding utility | |
component-boilerplat... Boilerplate for Component and Express | |
component-boilerplat... Boilerplate for Component and Koa | |
component-build main logic for component's build command | |
component-builder builder for component | |
component-builder-ww... Component building middleware | |
component-builder2 builder for component | |
component-bundler bundlers and bundling guide for component | |
component-cdn CDN for Component | |
component-classes Cross-browser element class list |
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
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var lunr = require('lunr'); | |
var idx = lunr(function () { | |
this.field('title', { boost: 10 }) | |
this.field('body') | |
}) | |
var doc = { | |
"title": "Twelfth-Night", |
OlderNewer