Skip to content

Instantly share code, notes, and snippets.

View skade's full-sized avatar
💭
Bringing Rust to safety critical.

Florian Gilcher skade

💭
Bringing Rust to safety critical.
View GitHub Profile
@skade
skade / questions.rb
Created May 28, 2011 13:45
This short Padrino application hopefully answers all your questions
require 'padrino-core'
class Questions < Padrino::Application
get '/*' do
redirect "http://padrinorb.com"
end
end
Questions.run!
diff --git a/padrino-core/lib/padrino-core/application/routing.rb b/padrino-core/lib/padrino-core/application/routing.rb
index a978218..3ea7c25 100644
--- a/padrino-core/lib/padrino-core/application/routing.rb
+++ b/padrino-core/lib/padrino-core/application/routing.rb
@@ -12,6 +12,8 @@ module Padrino
# to the url throughout the application.
#
module Routing
+ CONTENT_TYPE_ALIASES = {:htm => :html}
+
@skade
skade / Compiler warnings
Created November 8, 2009 04:10
Compiler warnings and failing tests for rbtree
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-darwin10.0.0 -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -DNDEBUG -DHAVE_RB_ENUMERATORIZE -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -pipe -o dict.o -c dict.c
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-darwin10.0.0 -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -DNDEBUG -DHAVE_RB_ENUMERATORIZE -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -pipe -o rbtree.o -c rbtree.c
rbtree.c: In function ‘value_eq’:
rbtree.c:430: warning: implicit conversion shortens 64-bit value into a 32-bit value
rbtree.c: In function ‘to_hash_i’:
rbtree.c:1062: warning: passing argument 1 of ‘rb_hash_tbl’ makes integer from poi