Skip to content

Instantly share code, notes, and snippets.

View aimeerivers's full-sized avatar

aimee rivers aimeerivers

View GitHub Profile
module Prawnto
module TemplateHandler
class CompileSupport
# Monkey-patch the breaking method
def ssl_request?
false
end
end
Inspired by Ruby on Rails, Webby has layouts, partials and helpers, but no database,
so it’s ideal for small static content websites. You can write your pages in erb, textile,
haml, markdown. You can write Ruby code to generate navigator links, breadcrumb trails and
pagination. You run it all through a parser which converts to HTML files which can easily
be deployed to any web server.
git status | grep 'features/[^step_definitions/]' | cut -d/ -f2 | xargs -I {} rake features FEATURE=features/{}
/Library/Ruby/Gems/1.8/gems/testjour-0.3.0/lib/testjour/configuration.rb:20:in `setup': undefined method `options=' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/1.8/gems/testjour-0.3.0/lib/testjour/commands/run.rb:22:in `execute'
from /Library/Ruby/Gems/1.8/gems/testjour-0.3.0/lib/testjour/http_queue.rb:82:in `with_queue_server'
from /Library/Ruby/Gems/1.8/gems/testjour-0.3.0/lib/testjour/commands/run.rb:21:in `execute'
from /Library/Ruby/Gems/1.8/gems/testjour-0.3.0/lib/testjour/cli.rb:37:in `execute'
from /Library/Ruby/Gems/1.8/gems/testjour-0.3.0/lib/testjour/cli.rb:7:in `execute'
from /Library/Ruby/Gems/1.8/gems/testjour-0.3.0/bin/testjour:8
from /usr/bin/testjour:19:in `load'
from /usr/bin/testjour:19
You're nearly there!
The final bit.ly link is formed by putting together the 5 bonus letters you've found along the way.
http://bit.ly/*****
(in case you're wondering what this is, start here: http://twitpic.com/j50un)
<html>
<head>
<title>Example Notice</html>
<style type="text/css">
body { font-family: helvetica; }
#notice {
color: #fff;
position: absolute;
width: 400px;
top: 10px;
______
( moo )
------
o ,__,
o (oo)____
(__) )\
||--|| *
_______________________________________
( Q: What's tiny and yellow and very, )
( very, dangerous? A: A canary with the )
( super-user password. )
---------------------------------------
o
o
.--.
|o_o |
|:_/ |
require 'rubygems'
require 'sinatra'
require 'haml'
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/lib')
require 'oauth.rb'
enable :sessions
get '/' do
When /^(?:|I )select "([^\"]*)" as the "([^\"]*)" date$/ do |date, date_label|
select_date(date, :from => date_label)
end
DATE_TIME_SUFFIXES = {
:year => '1i',
:month => '2i',
:day => '3i',
:hour => '4i',
:minute => '5i'