I hereby claim:
- I am jreina on github.
- I am johnnyreina (https://keybase.io/johnnyreina) on keybase.
- I have a public key whose fingerprint is C2A4 84D1 23F2 46DB 7E10 8D1E 0AE3 B93B 76AD 9E0E
To claim this, I am signing this object:
FOR %G IN (*.m4a) DO avconv -i "%G" "%~nG.wav" |
// The emote button on the bottom of the screen | |
const emote = document.getElementById('rockets'); | |
// The high-five button on the bottom of the screen | |
const highfive = document.getElementById('high-five'); |
I hereby claim:
To claim this, I am signing this object:
/** | |
* @template T | |
* @param {Array<T>} arr | |
* @returns {Array<T>} | |
*/ | |
function scramble(arr) { | |
arr.sort(() => 0.5 - Math.random()); | |
return arr; | |
} |
fn = function(xs, keySelector) { | |
if (!Array.isArray(xs)) throw new TypeError('xs must be an array'); | |
if (typeof keySelector !== 'function') throw new TypeError('keySelector must be a function'); | |
const groups = new Map(); | |
for (let x of xs) { | |
const key = keySelector(x); | |
if (!groups.has(key)) groups.set(key, []); | |
groups.get(key).push(x); | |
} | |
const groupings = [...groups.entries(groups)].map(([key, items]) => { |
fn = function(xs, keySelector) { | |
if (!Array.isArray(xs)) throw new TypeError('xs must be an array'); | |
if (typeof keySelector !== 'function') throw new TypeError('keySelector must be a function'); | |
const groups = new Map(); | |
for (let x of xs) { | |
const key = keySelector(x); | |
if (!groups.has(key)) groups.set(key, []); | |
groups.get(key).push(x); | |
} | |
const groupings = [...groups.entries(groups)].map(([key, items]) => { |
fn = function(xs, seed, reducer, resultSelector) { | |
if (!Array.isArray(xs)) throw new TypeError('xs must be an array'); | |
if (typeof reducer !== 'function' || reducer.length !== 2) throw new TypeError('reducer must be a function of arity 2'); | |
if (typeof resultSelector !== 'function') throw new TypeError('resultSelector must be a function'); | |
let val = seed; | |
for (let x of xs) { | |
val = reducer(val, x); | |
} | |
return resultSelector(val); |
fn = function(xs, reducer) { | |
if (!Array.isArray(xs)) throw new TypeError('xs must be an array'); | |
if (typeof reducer !== 'function' || reducer.length !== 2) throw new TypeError('reducer must be a function of arity 2'); | |
if (xs.length === 0) throw new Error('Sequence must contain at least one element'); | |
let [val, ...rest] = xs; | |
for (let x of rest) { | |
val = reducer(val, x); | |
} | |
return val; |
fn = function(xs, seed, reducer) { | |
if (!Array.isArray(xs)) throw new TypeError('xs must be an array'); | |
if (typeof reducer !== 'function' || reducer.length !== 2) throw new TypeError('reducer must be a function of arity 2'); | |
if (xs.length === 0) return seed; | |
let val = seed; | |
for (let x of xs) { | |
val = reducer(val, x); | |
} | |
return val; |
fn = function(xs, xform) { | |
const arr = []; | |
for(let x of xs) { | |
arr.push(xform(x)); | |
} | |
return arr; | |
} |