Skip to content

Instantly share code, notes, and snippets.

🌭
That's a lot of hotdogs

chee chee

Block or report user

Report or block chee

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@chee
chee / components.json
Created Feb 12, 2019
convert bower manifest to npm manifest
View components.json
[
"fticons",
"o-assets",
"o-autoinit",
"o-banner",
"o-brand",
"o-buttons",
"o-colors",
"o-cookie-message",
"o-date",
@chee
chee / index.js
Created Jan 28, 2019
abe's library
View index.js
module.exports.squonge = function squonge (squimple) {
return `squonge squonge squonge squonge squonge ${squimple}`
}
View goomba.js
#!/usr/bin/env node
function big (str) {
return Array.from(str, letter => letter == ' ' ? ':blank:' : ':b' + letter + ':').join('')
}
function goomba(str) {
const goomba = ':goomba:';
return goomba.repeat(str.length+2) + '\n' + goomba + big(str) + goomba + '\n' + goomba.repeat(str.length+2);
}
View compose.js
export default (...functions) => (...args) =>
functions
.slice(0, -1)
.reduceRight(
(result, fn) => fn(result),
functions[functions.length - 1](...args)
)
View package.json
{
"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>",
@chee
chee / package.json
Created Oct 31, 2018
rely on version 1
View package.json
{
"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>",
@chee
chee / package.json
Created Oct 31, 2018
reliesondep11
View package.json
{
"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>",
View package.json
{
"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>",
View package.json
{
"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>",
View number-words.js
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]
}
You can’t perform that action at this time.