I hereby claim:
- I am southdesign on github.
- I am southdesign (https://keybase.io/southdesign) on keybase.
- I have a public key whose fingerprint is B581 C015 C0D0 1ACC 27D1 5C39 2938 CD41 F64B D505
To claim this, I am signing this object:
# HTML Update URLs | |
Scales.update "/", "/tracks", "/overview", :format => :html | |
# XML Update URLs | |
Scales.update "/tracks.xml", "/overview.xml", :format => :xml | |
# JSON Update URLs | |
Scales.update "/tracks.json", "/overview.json", :format => :json |
@html = "<html><head></head><body><p>Hello World</p></body></html>" | |
@xml = "<tracks><track><name>Islandary</name><artist>Thomas Fankhauser</artist></track></tracks>" | |
@json = '[{ name : "Islandary", artist : "Thomas Fankhauser" }]' | |
# Push a HTML | |
Scales.push :html => @html, :to => "/hello" | |
# Push a XML | |
Scales.push :xml => @xml, :to => "/hello.xml" |
require 'scales/up/rails' | |
desc "Scale up the cache" | |
Scales::Up.new do |scales| | |
# Stylesheets | |
scales.push :css, :to => "/assets/application.css?body=1" | |
scales.push :css, :to => "/assets/scaffolds.css?body=1" | |
scales.push :css, :to => "/assets/tracks.css?body=1" | |
class TracksController < ApplicationController | |
# GET /tracks | |
def index | |
@tracks = Track.all | |
Scales.push :html => render("index"), :to => "/tracks" | |
end | |
# GET /tracks/1 | |
def show |
class TracksController < ApplicationController | |
# GET /tracks | |
def index | |
@tracks = Track.all | |
render "index" | |
end | |
# GET /tracks/1 | |
def show |
require 'goliath' | |
require 'eventmachine' | |
require 'em-synchrony' | |
require 'em-synchrony/em-hiredis' | |
class Server < Goliath::API | |
def response(env) | |
@redis = EM::Hiredis.connect | |
@redis.brpop "waiting_for_ever", 0 |
I hereby claim:
To claim this, I am signing this object:
/* Create Database */ | |
DROP SCHEMA IF EXISTS `limits`; | |
CREATE SCHEMA `limits`; | |
USE `limits`; | |
/* Create Tables */ | |
DROP TABLE IF EXISTS `limits`.`users`; | |
DROP TABLE IF EXISTS `limits`.`friends`; | |
DROP TABLE IF EXISTS `limits`.`statuses`; |