Public Gists by adamwiggins

Gravatar
Wed Nov 12 17:45:03 -0800 2008
1
2
3
let's make a list of sinatra-based apps!
 
apps:
Gravatar
Wed Nov 12 17:44:59 -0800 2008

      
Gravatar
Wed Nov 12 13:52:58 -0800 2008
1
2
3
error do
e = request.env['sinatra.error']
puts e.to_s
Gravatar
Fri Oct 24 19:06:53 -0700 2008
1
2
3
begin
  raise "an exception"
rescue
Gravatar
Thu Oct 09 18:55:14 -0700 2008
1
2
3
require 'resolv'
 
def ips_for(host)
Gravatar
Thu Sep 25 17:19:50 -0700 2008
1
2
3
require 'sinatra'
 
post '/' do
Gravatar
Mon Sep 15 20:29:16 -0700 2008
1
2
3
require 'rubygems'
require 'sinatra'
 
Gravatar
Sat Sep 06 13:43:32 -0700 2008
1
2
3
fenris:~$ git clone git://github.com:adamwiggins/bitswiki.git
Initialized empty Git repository in /Users/adam/bitswiki/.git/
remote: Counting objects: 132, done.
Gravatar
Thu Aug 28 12:42:04 -0700 2008
1
2
3
class CreateSemaphores < ActiveRecord::Migration
   def self.up
      create_table :semaphores do |t|
Gravatar
Tue Aug 19 16:52:08 -0700 2008
1
2
3
  # Framework name => file unique to this framework.
  # +nil+ for value to never guess.
  ADAPTERS = {
Gravatar
Tue Aug 19 16:52:04 -0700 2008
1
2
3
  # Framework name => file unique to this framework.
  # +nil+ for value to never guess.
  ADAPTERS = {
Gravatar
Tue Aug 19 16:29:35 -0700 2008
1
2
3
=CRASH REPORT==== 19-Aug-2008::16:27:57 ===
  crasher:
    pid: <0.92.0>
Gravatar
Thu Aug 14 21:38:05 -0700 2008
1
2
# run this in the console
Notifier.deliver_hello('your_email@example.com')
Gravatar
Mon Aug 11 19:38:05 -0700 2008
1
2
3
get '/' do
   headers('Content-Disposition' => "attachment; filename=heroku_#{$app.name}.tar.gz")
   headers('Content-Type' => 'application/x-gtar')
Gravatar
Mon Aug 11 19:33:09 -0700 2008
1
2
3
NoMethodError: undefined method `to_result' for #<IO:0xb74805dc>
  /usr/local/collar/app/../sinatra/lib/sinatra.rb:1493:in `to_result'
  /usr/local/collar/app/../sinatra/lib/sinatra.rb:1480:in `to_result'
Gravatar
Sun Jul 20 15:54:53 -0700 2008
1
2
3
-module(room).
-export([sample/0]).
-export([look/1]).