Skip to content

Instantly share code, notes, and snippets.

View justjake's full-sized avatar
🎉
🎉

Jake Teton-Landis justjake

🎉
🎉
View GitHub Profile
#!/usr/bin/env zsh
APP="/Applications/CrashPlan.app"
CONFIG="/Contents/Resources/Java/conf/ui.properties"
unlink-prop() {
rm "$APP/$CONFIG"
}
link-prop() {
@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")
@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 / 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 / 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