Skip to content

Instantly share code, notes, and snippets.

match '/:id', :to => proc { |env|
id = env["action_dispatch.request.path_parameters"][:id]
model = Slug.find_by_slug(id).model
controller = [model.pluralize.camelize,"Controller"].join.constantize
controller.action("show").call(env)
@ProximaMonkey
ProximaMonkey / weibo.py
Created February 20, 2012 16:40 — forked from mazesoul87/weibo.py
weibo oauth
#encoding:utf-8
import logging
import time
import urllib
import mimetools
from tornado import httpclient
from tornado.httputil import HTTPHeaders
from tornado import escape
from tornado.auth import OAuthMixin,OAuth2Mixin
@ProximaMonkey
ProximaMonkey / summary.json
Created January 29, 2012 18:42
Devcast - 1
{
"JavaScript": ["Font.js"],
"NodeJS": ["node-geoip","ftp-get","magician"]
}

Redis + LibUV prototype README

Special thanks to Dušan Majkic (dmajkic, https://github.com/dmajkic/redis/) for his project on GitHub that gave us the opportunity to quickly learn some on the intricacies of Redis code. His project also helped us to build our prototype quickly.

Get source repository

First clone the Redis sources from https://github.com/antirez/redis.

  • On your computer create a working folder and cd into it.
  • Clone antirez/redis repository: