Skip to content

Instantly share code, notes, and snippets.

"""
This fabric file makes setting up and deploying a django application much
easier, but it does make a few assumptions. Namely that you're using Git,
Apache and mod_wsgi and your using Debian or Ubuntu. Also you should have
Django installed on your local machine and SSH installed on both the local
machine and any servers you want to deploy to.
_note that I've used the name project_name throughout this example. Replace
this with whatever your project is called._
@mt3
mt3 / create_django_heroku_project.sh
Created August 21, 2011 09:00 — forked from tkopczuk/create_django_heroku_project.sh
Script to create a new Heroku-ready Django project.
#!/bin/bash
mkdir prancing_heroku
cd prancing_heroku
django-admin.py startproject prancing_heroku
echo "Django==1.3" > requirements.txt
echo "psycopg2" >> requirements.txt
echo "web: prancing_heroku/run_heroku_run.sh" > Procfile
"""
A redis autocomplete example for multi-word phrases.
Based on:
Ruby original: http://gist.github.com/574044
Python original: https://gist.github.com/577852
See options below for usage
Requires http://github.com/andymccurdy/redis-py/
# This script just get the latest tracks of your friends on Last.fm and recommends those more popular.
# It's all based on a conversation between @mort, @rochgs, @littlemove and me (mainly by @mort)
# INSTRUCTIONS
# 1. Install lastfm gem: https://github.com/youpy/ruby-lastfm/
# gem install lastfm
# 2. Get a Last.fm API Key on http://www.lastfm.es/api
require 'lastfm'
class StanfordParser <Formula
url 'http://nlp.stanford.edu/software/stanford-parser-2010-02-26.tgz'
homepage 'http://nlp.stanford.edu/software/lex-parser.shtml'
md5 '25e26c79d221685956d2442592321027'
version '1.6.2'
JAR = 'stanford-parser.jar'
def install
# install files into directories
(prefix+"lib").install Dir["*.jar"]