Skip to content

Instantly share code, notes, and snippets.

View codingisacopingstrategy's full-sized avatar

Eric Schrijver codingisacopingstrategy

View GitHub Profile
@june29
june29 / tumblr-scraper.rb
Created February 5, 2011 19:59
tumblr-scraper.rb
require "rubygems"
require "mechanize"
require "nokogiri"
module Tumblr
class Scraper
def initialize(email, password, trim_reblog_info = true)
@email = email
@password = password
@trim_reblog_info = trim_reblog_info
@shripadk
shripadk / gist:652819
Created October 29, 2010 03:10
Express authentication using Redis for session store and Couchdb for database (in coffeescript!)
###
Module dependencies
###
require.paths.unshift "#{__dirname}/lib/support/express-csrf/"
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/"
express = require 'express'
app = module.exports = express.createServer()
RedisStore = require 'connect-redis'
function showTweets(){
var target = $("#twitter");
var url = "http://twitter.com/statuses/user_timeline/USERNAME.json?callback=?&count=5"
var tweets = new Array();
target.html("Loading Tweets...");
$.getJSON(url, function(data) {
target.html("");