Skip to content

Instantly share code, notes, and snippets.

from django.http import HttpRequest
class PickleableHttpRequest(HttpRequest):
def __init__(self, request=None, attributes=None):
super(PickleableHttpRequest, self).__init__()
if request:
if not isinstance(request, HttpRequest):
raise Exception('Request supplied is not a valid HTTP request object.')
@busterbenson
busterbenson / markov_tweets.rb
Created September 25, 2013 05:05
How I do @buster_ebooks.
#!/usr/bin/ruby
# Make sure you have these gems installed
require 'rubygems'
require 'thread'
require 'csv'
require 'twitter'
require 'marky_markov'
# Create a new Twitter account that you'd like to have your auto-tweets posted to