function pubsubber() {
const subscribers = []
return {
subscribe,
once,
publish
}
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
{ | |
"name": "gist-test", | |
"version": "0.0.0", | |
"bin": "./run.js" | |
} |
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
node_modules |
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
[ | |
{ | |
"op": "replace", | |
"path": [ | |
"nodes", | |
"0", | |
"nodes", | |
"0", | |
"characters", | |
"8", |
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
export default function replayer(array, opts = {}, emit) { | |
let idx = 0 | |
let timer | |
return { | |
start: next, | |
stop: stop, | |
reset: reset | |
} |
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
import url from 'url' | |
export default Object.assign(configure(), configure) | |
function configure({qsImpl} = {}) { | |
return { | |
parse(urlToParse) { | |
return Object.assign(createUrlObject({qsImpl}), { | |
href: urlToParse | |
}) |
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
function combine() { | |
var funcs = Array.prototype.slice.call(arguments, 0); | |
return function(obj) { | |
var _this = this; | |
return funcs.reduce(function(v, func) { | |
return func.call(_this, v); | |
}, obj) | |
} | |
} |
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
$('[datetime]').each(function() { $('<p>'+new Date($(this).attr('datetime'))+'</p>').insertAfter($(this))}) |
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
May 14 13:05:52 riktig.bengler.no: Running command: ffmpeg -i '/tmp/tootsie20130514-15492-1exldxc' -threads '1' -v '1' -y -acodec 'libmp3lame' -ar '44100' -ab '128000' -qscale '1.0' -f 'mp3' '/tmp/tootsie20130514-15492-1wksk7d' 2>&1 | |
May 14 13:05:53 riktig.bengler.no: [Command output] Stream mapping: | |
May 14 13:05:53 riktig.bengler.no: [Command output] Stream #0.0 -> #0.0 | |
May 14 13:05:53 riktig.bengler.no: [Command output] Press ctrl-c to stop encoding | |
May 14 13:05:53 riktig.bengler.no: [Command output] Error while decoding stream #0.0 | |
May 14 13:06:05 riktig.bengler.no: [Command output] size= 168kB time=10.74 bitrate= 128.1kbits/s | |
May 14 13:06:05 riktig.bengler.no: [Command output] size= 319kB time=20.40 bitrate= 128.1kbits/s | |
May 14 13:06:05 riktig.bengler.no: [Command output] size= 474kB time=30.30 bitrate= 128.0kbits/s | |
May 14 13:06:05 riktig.bengler.no: [Command output] size= 641kB time=41.04 bitrate= 128.0kbits/s | |
May 14 13:06:05 riktig.bengler.no: [Command output] size= 804kB time=51.44 b |