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 |
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
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
curl -I -A 'Mozilla/5.0 (Linux; U; Android 4.2.2; nb-no; SM-G350 Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30' 'http://www.ranablad.no/api/reaktorcore/v1/roles/apdm/ranablad/me' | |
HTTP/1.1 302 Moved Temporarily | |
Server: Varnish | |
Location: http://mobil.ranablad.no/api/reaktorcore/v1/roles/apdm/ranablad/me | |
Accept-Ranges: bytes | |
Date: Mon, 12 May 2014 13:05:34 GMT | |
X-Varnish: 2475744373 | |
Age: 0 | |
Via: 1.1 varnish | |
Connection: close |
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
$ curl -v bilkollektivet.no | |
* Adding handle: conn: 0x7fa0a9004400 | |
* Adding handle: send: 0 | |
* Adding handle: recv: 0 | |
* Curl_addHandleToPipeline: length: 1 | |
* - Conn 0 (0x7fa0a9004400) send_pipe: 1, recv_pipe: 0 | |
* About to connect() to bilkollektivet.no port 80 (#0) | |
* Trying 77.40.153.36... | |
* Connected to bilkollektivet.no (77.40.153.36) port 80 (#0) |
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
// Can you spot the bug? You will never se any errors in devtools/console when running this. | |
new Promise(function(reslove) { | |
resolve("Foo"); | |
}) | |
.then(function() { | |
console.log("Why is this never called?"); | |
}); |
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 EventEmitter = require("events").EventEmitter; | |
// A thing to manage/track state changes | |
// Changes passed to setState are queued up and effectuated in the next event loop tick | |
class Stateful extends EventEmitter { | |
constructor() { | |
this.state = this.getInitialState(); | |
this._stateChangeQueue = []; | |
this._stateChangeInProgress = false; |
I hereby claim:
- I am bjoerge on github.
- I am bjoerge (https://keybase.io/bjoerge) on keybase.
- I have a public key whose fingerprint is 1CB9 3D09 AAEA C6D9 8F54 B971 9944 8770 48FC 8B0D
To claim this, I am signing this object:
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 () { | |
if (x && !(x + "1") && y) { // 1 | |
var qq; | |
foo(); | |
} else { | |
bar(); | |
} | |
if (x || !!(x + "1") || y) { // 2 | |
foo(); |