Skip to content

Instantly share code, notes, and snippets.

@sr
sr / gist:66980
Created February 19, 2009 16:15
my dwm config
/* 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";
commit 4039b792c6af983552705302c282bd35b59ea9e4
Author: Simon Rozet <simon@rozet.name>
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.
use Rack::Auth::Basic do |username,password|
password == 'secret'
end
get '/' do
"welcome in the secret zone"
end
@sr
sr / base.rb
Created January 31, 2009 01:33 — forked from rtomayko/base.rb
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!"
@sr
sr / twicl
Created January 30, 2009 16:03 — forked from leahneukirchen/twicl
#!/usr/bin/env ruby
# -*- ruby -*-
# twitter command line client
# That's What I Call Lame
# 09nov2008 +chris+
require 'json'
require 'open-uri'
@sr
sr / bot.rb
Created January 28, 2009 21:19 — forked from vangberg/gist:54192
# 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'
commit 7f15f6447d38cab55b46ae3210db773e1f61af4a
Author: Simon Rozet <simon@rozet.name>
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
@sr
sr / init.rb
Created January 22, 2009 18:22 — forked from jnewland/init.rb
# 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
Sinatra Pimping
===============
Ideas/Brain dump
----------------
* Do not show the README on the front page. But:
* Elevator pitch
* Code
* Mailing-List, #sinatra, Bug tracker