Skip to content

Instantly share code, notes, and snippets.

View Kadajett's full-sized avatar

Jeremy Stover Kadajett

View GitHub Profile
const errors = {
web_user_phone_error: {
error_data: "asdf"
}
}
return R.compose(
R.propOr(message, "createdMessage"),
errors[x]
)(errors)
/**
* This is basic memoization. I am going to play around with it and come up with a few solutions!
* Probably going to go back and rewrite this. Its kinda ugly.
*/
class Fib {
constructor() {
this.cache = {
"10": [0,1,1,2,3,4,8,13, 21, 34]
}
@Kadajett
Kadajett / incrementingInt.js
Last active January 26, 2018 22:37
Increment an integer on GET
var i = 1;
Object.defineProperty(window, 'n' , {
get() {
return i ++;
}
})
// n == 1
// n == 2
@Kadajett
Kadajett / sodaBread.txt
Created January 9, 2018 00:56
My basic soda bread recipe
https://www.epicurious.com/recipes/food/views/white-soda-bread-1907
@Kadajett
Kadajett / JeremysPizzaDough.txt
Created December 20, 2017 18:21
My ever growing recipe for pizza dough
155 grams 00 flour
155 grams all purpose flour
8 grams of fine salt
2 grams MSG (For tomato or mushroom based pies. And Don't worry if it sounds weird. Trust me lol)
2 grams active dry yeast
4 grams extra virgin olive oil
200 grams of lukewarm water
Step 1: Combine flours and salt in a stand mixing bowl or a large bowl
Step 2: in a small bowl, stir together water, yeast and oil
module textCylinder( text="TEST"
,r=30
,h=2 // embosed height of letters
,size=10 // text(size=)
,rotate=[0,0,0] // | y= rotate face of text
// | z= rotate around the circumference
// | x is ignored
module textCylinder( text="TEST"
,r=30
,h=2 // embosed height of letters
,size=10 // text(size=)
,rotate=[0,0,0] // | y= rotate face of text
// | z= rotate around the circumference
// | x is ignored
,font=undef // : these allow default value in text()
,spacing=undef // : undef gets rid of WARNING unknown variable
,language=undef
while true do
for a=1,10 do
for e=1,31 do
turtle.forward()
turtle.dig()
end
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
for i=1,31 do
@app.route('/api/<string:channelName>', methods=['GET'])
def getChannel(channelName):
// channel = someFunctionThatFindsAChatByItsName
if `channel doesnt exist??? lol`:
abort(404)
return jsonify(channel)
@Kadajett
Kadajett / biography
Created May 18, 2015 06:09
My professional biography
My name is Jeremy Stover and I am a Javascript engineer based in San Francisco. I love building complicated web apps that change the way people look at the world. I have contributed to projects that help blind people understand their surroundings with Google Glass, built applications that change the way thousands of people commute, and even an app that shows you what you should do for fun tonight!
I love finding new projects and companies to work with, so please, give me a challenge!