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 (...functions) => (...args) => | |
functions | |
.slice(0, -1) | |
.reduceRight( | |
(result, fn) => fn(result), | |
functions[functions.length - 1](...args) | |
) |
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": "honk", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [], | |
"author": "chee <chee@snoot.club>", |
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": "relyonversion1", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [], | |
"author": "chee <chee@snoot.club>", |
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": "relyonversion2", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [], | |
"author": "chee <chee@snoot.club>", |
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": "dep1", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"install": "[ $(pwd | grep node_modules -o | wc -l) == 1 ] || (echo i am conflicted please help && exit 22)" | |
}, | |
"keywords": [], | |
"author": "chee <chee@snoot.club>", |
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": "dep1", | |
"version": "2.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"install": "[ $(pwd | grep node_modules -o | wc -l) == 1 ] || (echo i am conflicted please help && exit 22)" | |
}, | |
"keywords": [], | |
"author": "chee <chee@snoot.club>", |
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 deconstructor({words, number, base}) { | |
const which = Math.log(number) / Math.log(base) | 0 | |
const amount = Math.pow(base, which) | |
const prefix = number / amount | 0 | |
const round = amount * prefix | |
return { | |
number: prefix, | |
remainder: number - round, | |
word: words[which] | |
} |
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
{ | |
"lol": "hi", | |
"array": ["a", "b", "c"] | |
} |
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
#!/usr/bin/env node | |
charactermap = new Proxy({ | |
' ': 'blank', | |
'?': 'question', | |
'!': 'exclamation' | |
}, { | |
get: (object, key) => | |
key in object | |
? object[key] |
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
data = require('./data.json') | |
escape = char => `\\${char}` | |
special = new RegExp( | |
'[' + | |
'( ) { } [ ] | \\ ^ $ * + ? .' | |
.split`` | |
.map(escape) | |
.join('|') + |