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
/* See LICENSE file for copyright and license details. */ | |
/* appearance */ | |
static const char font[] = "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*"; | |
static const char normbordercolor[] = "#cccccc"; | |
static const char normbgcolor[] = "#cccccc"; | |
static const char normfgcolor[] = "#000000"; | |
static const char selbordercolor[] = "#0066ff"; | |
static const char selbgcolor[] = "#0066ff"; | |
static const char selfgcolor[] = "#ffffff"; |
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
commit 4039b792c6af983552705302c282bd35b59ea9e4 | |
Author: Simon Rozet <[email protected]> | |
Date: Wed Jan 28 23:57:51 2009 +0100 | |
Back to the essences | |
* Back to Markdown | |
* I suck at CSS, and I'd rather provide no CSS | |
than one that sucks. | |
* All that JS floating around is just unecessary bloat to me. |
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
use Rack::Auth::Basic do |username,password| | |
password == 'secret' | |
end | |
get '/' do | |
"welcome in the secret zone" | |
end |
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
class Foo < Sinatra::Base | |
host_name "sinatrarb.com" | |
user_agent /Mosaic/ | |
provides :xml | |
get '/' do | |
"Welcome!" | |
end | |
get '/' do | |
"You are not to be welcomed!" |
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
#!/usr/bin/env ruby | |
# -*- ruby -*- | |
# twitter command line client | |
# That's What I Call Lame | |
# 09nov2008 +chris+ | |
require 'json' | |
require 'open-uri' |
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
# Meh, I went overboard. Usage: | |
# | |
# To tweet, write in channel: | |
# nancie, tweet this: some nice thing about sinatra and stuff | |
# To give permissions, private message: | |
# /msg nancie allow awesome_user | |
# | |
# Additional extensions are welcome. | |
require 'rubygems' |
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
commit 7f15f6447d38cab55b46ae3210db773e1f61af4a | |
Author: Simon Rozet <[email protected]> | |
Date: Wed Jan 28 17:31:07 2009 +0100 | |
last one | |
diff --git a/index.html b/index.html | |
index 4b10db2..0b09989 100644 | |
--- a/index.html | |
+++ b/index.html |
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
✈ |
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
# A Sinatra App as a Rails Plugin | |
# | |
# In your Edge Rails app: | |
# | |
# ruby script/plugin install git://gist.github.com/50625.git | |
require 'sinatra/base' | |
class SinatraRailsPlugin < Sinatra::Base | |
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
Sinatra Pimping | |
=============== | |
Ideas/Brain dump | |
---------------- | |
* Do not show the README on the front page. But: | |
* Elevator pitch | |
* Code | |
* Mailing-List, #sinatra, Bug tracker |