Skip to content

Instantly share code, notes, and snippets.

View justjake's full-sized avatar
🎉
🎉

Jake Teton-Landis justjake

🎉
🎉
View GitHub Profile
@justjake
justjake / fuck-me.js
Created August 26, 2015 08:21
4chan tried to make a monopoly game in a live codepad
// install gentoo
// https://boards.4chan.org/g/thread/49913571/so-g-has-never-made-a-project-in-their-lives-so
// http://codeshare.io/sqjc2
const clover = '//s.4cdn.org/image/buttons/burichan/watch_thread_off.png';
// @param {String} url - load image from here
// @return {Promise<Sprite>} herp derp
function loadSprite(url) {
return new Promise((resolve, reject) => {
const img = new Image();
@justjake
justjake / titanfall-scoreboard.sh
Last active August 29, 2015 13:57
Convert Titanfall end-of-game scoreboards into text files
#!/bin/bash
# Converts a titanfall scoreboard from any image format into a TXT document
# Uses imagemagick for image magick (apt-get install imagemagick)
# Uses tesseract for OCR (apt-get install tesseract-ocr)
set -e
CONVERT_LOCATION="/tmp/titanfall"
@justjake
justjake / SCIENCE.md
Created December 25, 2014 17:20
Dispelling some myths

Cut fruit looses nutrition? Not significantly.

Cut fruit looses about 10% to 25% of its vitamin C and other oxidizing nutrients after 6 days in refrigeration; it visibly spoils before nutrition loss is significant. Most oft-cited paper with this result is Quality Changes and Nutrient Retention in Fresh-Cut versus Whole Fruits during Storage (American Chemical Society), you cans find a brief summary from the NYT Nutrition desk here: http://www.nytimes.com/2006/06/06/health/nutrition/06nutr.html, and a google search for "cut fruit loses nutrition" has top results mostly pointing to that study. An argument can be made for pre-cut vegetables and fruits being less tasty after a week of near-freezing refrigeration, but this "4 hours" thing is malarky.

Vitamin C reacts with "metal" to become useless? No.

I found a few articles discussing vitamin C reacting with free iron & copper in a H2O2 (hydrogen peroxide) solution to become a free r

@justjake
justjake / swag.log
Created August 23, 2015 05:51
output of exeriment for compiling mardown to other markdown
> airbnb-style@2.0.0 script /home/justjake/src/javascript
> babel-node ./script/index.js
INPUT MARKDOWN TEXT:
# Destructuring
## Use object destructuring when accessing and using multiple properties of an object.
@justjake
justjake / derp.txt
Created March 5, 2012 05:31
HTML Macros?
-- DSL language syntax --
/* example syntax: python-like */
doctype 5
html
head
title My Awesome Page
body
div
id: global
p
@justjake
justjake / zenburn.css
Created July 6, 2012 08:19
Bare Minimum CSS
/* search your feelings, you know it to be true */
body {
color: #dcdccc;
background: #292929;
font-family: sans-serif;
margin: 1em 5.55%;
}
/* optional: nice text spacing */
body { line-height: 1.5; }
@justjake
justjake / fizzbuzz.clj
Created November 25, 2012 01:46
Extensable and functional fizz-buzz in Clojure
(comment
Here is FizzBuzz written by a
first-day clojure bro)
(defn divisible-by [by-num]
(fn [num]
(= 0 (rem num by-num))))
(def tests-and-outputs
@justjake
justjake / fib.py
Created November 28, 2012 00:19
Fibonocci CLI tool
#!/usr/bin/env python
"""Fibonacci calculator with better precision than Javascript"""
def main():
import argparse
parser = argparse.ArgumentParser(description='Show the Fibonacci series number')
# method to use
parser.add_argument('-r', '--recursive', action='store_true',
help="Use a recursive method")
#!/usr/bin/env zsh
APP="/Applications/CrashPlan.app"
CONFIG="/Contents/Resources/Java/conf/ui.properties"
unlink-prop() {
rm "$APP/$CONFIG"
}
link-prop() {
@justjake
justjake / format.js
Last active December 16, 2015 22:29
update = {
/* Two basic sections. */
"Nodes": {
/* Nodes is a int->node map.
* nodes that already exist are updaasdted
* by the fields supplied in the Nodes section
* delete a node by passing `null` or a string as the value
*
* id, name, class fields required for new node creationjsdfA
* */