Skip to content

Instantly share code, notes, and snippets.

View jacroe's full-sized avatar

Jacob Roeland jacroe

View GitHub Profile
You have to make almighty decisions when you're the creator. That's what painting is all about. It should make you feel good when you paint. Now let's put some happy little clouds in here. If there's two big trees invariably sooner or later there's gonna be a little tree.
As trees get older they lose their chlorophyll. I'm gonna start with a little Alizarin crimson and a touch of Prussian blue Put light against light - you have nothing. Put dark against dark - you have nothing. It's the contrast of light and dark that each give the other one meaning. Trees live in your fan brush, but you have to scare them out.
We don't have to be concerned about it. We just have to let it fall where it will. And that's when it becomes fun - you don't have to spend your time thinking about what's happening - you just let it happen. That's a crooked tree. We'll send him to Washington.
public class BlowUpTheDisk {
public static void main(String[] args) throws InterruptedException {
for(int i = 0; i < 999999999; i++) {
for (int j = 0; j < 999999999; j++) {
System.out.println("999999999^2 double loops!");
}
}
System.out.println("I'm so evil!!!");
}
@jacroe
jacroe / dabblet.css
Last active August 29, 2015 14:19 — forked from eLindemann/dabblet.css
/**
* "Google Now" Card
*/
body {
background: #e1e1e1;
min-height: 100%;
margin: auto;
}
ul.gNow {
width: 450px;
@jacroe
jacroe / foursquare-brain.md
Created August 29, 2014 18:19
A Foursquare app that reminds me what I've had before

New place:

  1. Idly monitors my Foursquare check-ins.
  2. When it sees that I've checked-in to a place I haven't been before that offers foodage (restaurants, fast food, food truck, etc.), sends a Pushover notification. The notification will have a link to a page filled with the restaurant's information and allows me to, at my convenience, enter what I'm getting. I submit the page.
  3. After a set amount of time (30 minutes or so), it sends another notification asking me to rate my meal and leave comments. Saves to a database for lookup later.

Returning to a place:

  1. Same as above.
  2. When it sees that I've checked-in to a place that it has data about, the notification reflects that. ("You've been here before! So what are you having this time?") Links to page filled with past meals and comments. If I'm getting something new, lets me put in another meal. Submit the page.
@jacroe
jacroe / keybase.md
Last active May 8, 2021 03:19
Keybase verification

Keybase proof

I hereby claim:

  • I am jacroe on github.
  • I am jacroe (https://keybase.io/jacroe) on keybase.
  • I have a public key whose fingerprint is 44EE 9EC2 1B25 0AB9 7550 5FE7 4704 2B3A 78C9 2DF5

To claim this, I am signing this object:

@jacroe
jacroe / dictionary.py
Last active December 29, 2015 10:19
A way to receive definitions via terminal. Tested only in Ubuntu
import requests, sys
# ------------------------------------------------------------
APIKEY = "a2a73e7b926c924fad7001ca3111acd55af2ffabf50eb4ae5" # Taken from their live demo
# ------------------------------------------------------------
def main(word, onlyOne=False):
r = requests.get("http://api.wordnik.com/v4/word.json/" + word + "/definitions?limit=200&includeRelated=true&sourceDictionaries=wiktionary&useCanonical=false&includeTags=false&api_key=" + APIKEY)
@jacroe
jacroe / mustachify.sh
Last active December 27, 2015 20:09
Mustachify a gif Based on an idea from @holman
if [ -z $1 ] || [ ! -f $1 ]
then
echo "Usage: ./cmds [location of gif]"
exit 1
else
output=/tmp/mustache
rm -rf $output
mkdir $output
echo "Extracting gif..."
@jacroe
jacroe / pianobar_tls.sh
Created December 4, 2012 04:40
Appends the fingerprint to the end of Pianobar's config file
fingerprint=`openssl s_client -connect tuner.pandora.com:443 < /dev/null 2> /dev/null | openssl x509 -noout -fingerprint | tr -d ':' | cut -d'=' -f2` && echo tls_fingerprint = $fingerprint >> ~/.config/pianobar/config