This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/rackup.ru | |
require File.dirname(__FILE__) + "/../myapp" | |
set :app_file, File.expand_path(File.dirname(__FILE__) + '/../main.rb') | |
set :public, File.expand_path(File.dirname(__FILE__) + '/../public') | |
set :views, File.expand_path(File.dirname(__FILE__) + '/../views') | |
set :env, :production | |
disable :run, :reload | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For blog post at runswithpandas.heroku.com | |
require File.dirname(__FILE__) + "/../my_sinatra_app" | |
set :app_file, File.expand_path(File.dirname(__FILE__) + '/../main.rb') | |
set :public, File.expand_path(File.dirname(__FILE__) + '/../public') | |
set :views, File.expand_path(File.dirname(__FILE__) + '/../views') | |
set :env, :production | |
disable :run, :reload | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "rack" | |
require "delegate" | |
module Sinatra | |
class Builder < Rack::Builder | |
Fall = 99 | |
class EventContext < DelegateClass(Hash) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo(bar) -> | |
% do something | |
foo(X); | |
foo(X) -> | |
% do something else | |
foo(X, Y) -> | |
% seperated because of new signature |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
("/Applications/Aquamacs Emacs.app/Contents/MacOS/Aquamacs Emacs") | |
Loading prestart plugin files ... | |
... done. | |
Loading easy-mmode...done | |
Shell: /bin/bash | |
Aquamacs Mule installed. | |
Loading encoded-kb...done | |
Loading easymenu...done | |
Loading jka-compr...done | |
uncompressing tree-widget.el.gz...done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
starting recovery ...{"init terminating in do_boot",{{nocatch,{error,{cannot_start_application,rabbit,{{bad_type,realm_exchange,{realm_resource,'_',<<10 bytes>>}},{rabbit,start,[normal,[]]}}}}},[{init,start_it,1},{init,start_em,1}]}} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{basic_message,{resource,<<"/">>,exchange,<<>>}, | |
<<"one">>, | |
{content,60, | |
{'P_basic',<<"application/octet-stream">>,undefined, | |
undefined,1,0,undefined,undefined, | |
undefined,undefined,undefined,undefined, | |
undefined,undefined,undefined}, | |
<<152,0,24,97,112,112,108,105,99,97,116,105,111,110,47, | |
111,99,116,101,116,45,115,116,114,101,97,109,1,0>>, | |
[<<"ping">>]}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'thin' | |
require 'lizzy' | |
Thread.new do | |
sleep(1) until EM.reactor_running? | |
Lizzy.start | |
end | |
post "/some/url/:id" do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/.gitignore b/.gitignore | |
new file mode 100644 | |
index 0000000..31da4cb | |
--- /dev/null | |
+++ b/.gitignore | |
@@ -0,0 +1,7 @@ | |
+\#.* | |
+.#* | |
+*.beam | |
+include/rabbit_framing.hrl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## From this | |
AMQP.start do | |
# deferrable callback | |
end | |
## To this | |
AMQP.start do | |
# reconnect callback | |
end.callback do | |
# deferrable callback |