Skip to content

Instantly share code, notes, and snippets.

View underlost's full-sized avatar
🦄
Unicorn.

Tyler Rilling underlost

🦄
Unicorn.
View GitHub Profile
# coding=UTF-8
from __future__ import division
import re
# This is a naive text summarization algorithm
# Created by Shlomi Babluki
# April, 2013
class SummaryTool(object):
@stottsan
stottsan / instagram.html
Created November 30, 2012 17:44
Client-side (jQuery/HTML) and server-side (Node.js) code for my Heroku-based Instagram feed reader.
<link rel="stylesheet" href="/css/instagram.css" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
<div class="instagram"></div>
<div class="load-more btn">Gimme more photos...</div>
<div class="error">Oops, there was an error getting the photos...</div>
<script src="/js/instagram.js"></script>
@violetcode
violetcode / alpha.py
Created April 20, 2012 04:31
Alphabetizer Helper Thingy
def alphabetizer(names):
"""
Takes a list as a parameter, and sorts them into alphabetical order
and groups them by the first letter.
"""
result = []
temp_dict = {}
for name in names:
first_letter = name[0].upper()
if first_letter not in temp_dict:
@javisantana
javisantana / heroku_tornado.sh
Created June 15, 2011 14:41
tornado on heroku
virtualenv --no-site-packages .
source bin/activate
bin/pip install tornado
bin/pip freeze > requirements.txt
mkdir app
git init
cat >.gitignore <<EOF
bin/
include/
lib/
anonymous
anonymous / bootstrap.sh
Created June 2, 2011 17:19
Django on Heroku with Celery and Sentry
virtualenv --no-site-packages .
source bin/activate
bin/pip install Django psycopg2 django-sentry
bin/pip freeze > requirements.txt
bin/django-admin.py startproject mysite
cat >.gitignore <<EOF
bin/
include/
lib/
EOF