I hereby claim:
- I am jochemstoel on github.
- I am jochemstoel (https://keybase.io/jochemstoel) on keybase.
- I have a public key ASAzBTDNcD-RjUotvku7vHwe5VyPmkrPNEzn3Zw4qus9AQo
To claim this, I am signing this object:
| function sec2time(timeInSeconds) { | |
| var pad = function(num, size) { return ('000' + num).slice(size * -1); }, | |
| time = parseFloat(timeInSeconds).toFixed(3), | |
| hours = Math.floor(time / 60 / 60), | |
| minutes = Math.floor(time / 60) % 60, | |
| seconds = Math.floor(time - minutes * 60), | |
| milliseconds = time.slice(-3); | |
| return pad(hours, 2) + ':' + pad(minutes, 2) + ':' + pad(seconds, 2) + ',' + pad(milliseconds, 3); | |
| } |
| # Create background noise profile from mp3 | |
| /usr/bin/sox noise.mp3 -n noiseprof noise.prof | |
| # Remove noise from mp3 using profile | |
| /usr/bin/sox input.mp3 output.mp3 noisered noise.prof 0.21 | |
| # Remove silence from mp3 | |
| /usr/bin/sox input.mp3 output.mp3 silence -l 1 0.3 5% -1 2.0 5% | |
| # Remove noise and silence in a single command |
| function curry( arg ) { | |
| var fn = this; | |
| function curried( ...args ) { | |
| return fn.apply( this, [arg, ...args] ); | |
| } | |
| curried.curry = curry; | |
| return curried; | |
| } |
| function keepTrying(otherArgs, promise) { | |
| promise = promise||new Promise(); | |
| // try doing the important thing | |
| if(success) { | |
| promise.resolve(result); | |
| } else { | |
| setTimeout(function() { | |
| keepTrying(otherArgs, promise); |
| { | |
| "ABNA":{ | |
| "BIC":"ABNANL2A", | |
| "bank_name":"ABN AMRO BANK N.V" | |
| }, | |
| "AEGO":{ | |
| "BIC":"AEGONL2U", | |
| "bank_name":"AEGON BANK NV" | |
| }, | |
| "ANDL":{ |
| [ | |
| "Aa en Hunze", | |
| "Aalburg", | |
| "Aalsmeer", | |
| "Aalten", | |
| "Abcoude", | |
| "Achtkarspelen", | |
| "Alblasserdam", | |
| "Albrandswaard", | |
| "Alkmaar", |
| (function () { | |
| if (!Object.defineProperty) return; | |
| Object.defineProperty(Function.prototype, 'initializing', { | |
| value: false, | |
| writable: true | |
| }); | |
| Object.defineProperty(Function.prototype, '$super', { | |
| value: function () { |
| var dgram = require('dgram'); | |
| var socket = dgram.createSocket('udp4'); | |
| var testMessage = "[hello world] pid: " + process.pid; | |
| var broadcastAddress = '255.255.255.255'; | |
| var broadcastPort = 5555; | |
| socket.setBroadcast(true); | |
| socket.bind(broadcastPort, '0.0.0.0'); |
I hereby claim:
To claim this, I am signing this object:
| function NotImplementedError(message) { | |
| this.message = message || ""; | |
| } | |
| NotImplementedError.prototype = Object.create(Error.prototype, { | |
| constructor: { value: NotImplementedError }, | |
| name: { value: 'NotImplementedError' }, | |
| stack: { get: function() { | |
| return new Error().stack; | |
| }}, | |
| }); |