Skip to content

Instantly share code, notes, and snippets.

View loisaidasam's full-sized avatar
🙌
🙌

Loisaida Sam loisaidasam

🙌
🙌
View GitHub Profile
@loisaidasam
loisaidasam / poem.txt
Created September 19, 2014 15:08
A short poem by Ben G
im rebellious
i dont really do eggs for bfast
i dont really like bfast food unless i had a heavy night of drinking
@loisaidasam
loisaidasam / poem.txt
Created September 19, 2014 15:42
A reactionary poem by Dome
son, you cant have breakfast without eggs and bacon
@loisaidasam
loisaidasam / cmj_artists.sh
Created October 1, 2014 18:24
CMJ Artists List 2014
curl -s http://www.cmj.com/marathon/cmj-2014-artists/ | pup .one-half .entry-title text{} | grep -v "Playing CMJ 2014"
@loisaidasam
loisaidasam / functions.py
Created October 17, 2014 20:53
A function for plotting the slope of a series of data points - add this to webapp/graphite/render/functions.py
def slope(requestContext, seriesList):
"""
Graphs the slope of a metric (or metrics)
"""
results = []
for series in seriesList:
name = "slope(%s)" % series.name
reversed_data = series[::-1]

A command line script for grabbing ESPN's latest headlines!

Throw this baby into your $HOME/bin directory (assuming it exists and is in your $PATH) and chmod it to 755 and you'll be cruising!

Dependencies:

@loisaidasam
loisaidasam / README.md
Last active August 29, 2015 14:08
Socks - Pair Matching
@loisaidasam
loisaidasam / solution.py
Last active August 29, 2015 14:11 — forked from isa/gist:2571012
Question: Convert following into the latter data structure in less than 30 lines:
List:
A, B, C
A, C, E
E, F, D
D, A, J
E, D, J
List
@loisaidasam
loisaidasam / README.md
Last active August 29, 2015 14:13
Virtualenv postactivate script for populating the latest Heroku config vars locally

Add this to your virtualenv postactivate script to store all heroku config variables in your project's .env file

(Unless you have some custom setup, this file probably lives at ~/.virtualenvs/[project name]/bin/postactivate

Requires heroku-config

package com.example;
import java.io.IOException;
import java.net.HttpURLConnection;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLSession;
import retrofit.client.Request;
@loisaidasam
loisaidasam / kenken.py
Created January 13, 2015 16:22
KenKen
#!/usr/bin/env python
# References
# http://en.wikipedia.org/wiki/KenKen
# https://docs.python.org/2/library/itertools.html
import argparse
import itertools