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
asdf |
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
### Keybase proof | |
I hereby claim: | |
* I am adamvr on github. | |
* I am adamvr (https://keybase.io/adamvr) on keybase. | |
* I have a public key whose fingerprint is 1229 4D11 B595 28DB C5EF B4EF E3B1 8A86 2F41 4435 | |
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
#!/bin/sh | |
cat | # read filenames from stdin | |
sed "s/^\(.*\)$/'\1'/" | # wrap each in single quotes | |
sed 's/^/file /' | # prepend file directive | |
ffmpeg -f concat -i - -acodec copy -vcodec copy "$1" # encode and store result on args[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
var augment = function (obj /* args */) { | |
var args = Array.prototype.slice.call(arguments, 1); | |
for (var i = 0; i < args.length; i += 1) { | |
var arg = args[i]; | |
// Skip non-objects | |
if ('object' !== typeof arg) continue; | |
for (var k in arg) { | |
var v = arg[k]; |
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
// Postorder flatten | |
var flatten = function (obj) { | |
var flat = {}; | |
function flatt (obj) { | |
for (var k in obj) { | |
var v = obj[k]; | |
if ('object' === typeof v) { | |
flatt(v); | |
} else if ('function' === typeof v) { |
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 resolve = function (key, object) { | |
var split = key.split('.') | |
for (var i = 0; i < split.length; i += 1) { | |
var key = split[i]; | |
if ('undefined' === object[key]) break; | |
object = object[key]; | |
} | |
return 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
var expr = ['random', 1000, '*', 'round']; | |
var calc = function (expr) { | |
var stack = [] | |
, left, right; | |
for (var i = 0; i < expr.length; i += 1) { | |
var val = expr[i]; | |
console.dir(stack); |
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
file='tmp.txt' | |
rm $file | |
for f in "$@" | |
do | |
echo "file '$f'" >> $file | |
done | |
ffmpeg -f concat -i $file -c copy $OUTPUT |
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 mqtt = require('./'); | |
var client = mqtt.createClient(); | |
client.on('connect', function() { | |
console.log('connected'); | |
}); | |
client.on('close', function() { | |
console.log('close, dcing:', client.disconnecting); |
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 |
NewerOlder