This file contains 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
module Prawnto | |
module TemplateHandler | |
class CompileSupport | |
# Monkey-patch the breaking method | |
def ssl_request? | |
false | |
end | |
end |
This file contains 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
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. |
This file contains 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
git status | grep 'features/[^step_definitions/]' | cut -d/ -f2 | xargs -I {} rake features FEATURE=features/{} |
This file contains 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
/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 |
This file contains 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
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) |
This file contains 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
<html> | |
<head> | |
<title>Example Notice</html> | |
<style type="text/css"> | |
body { font-family: helvetica; } | |
#notice { | |
color: #fff; | |
position: absolute; | |
width: 400px; | |
top: 10px; |
This file contains 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
______ | |
( moo ) | |
------ | |
o ,__, | |
o (oo)____ | |
(__) )\ | |
||--|| * |
This file contains 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
_______________________________________ | |
( Q: What's tiny and yellow and very, ) | |
( very, dangerous? A: A canary with the ) | |
( super-user password. ) | |
--------------------------------------- | |
o | |
o | |
.--. | |
|o_o | | |
|:_/ | |
This file contains 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
require 'rubygems' | |
require 'sinatra' | |
require 'haml' | |
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/lib') | |
require 'oauth.rb' | |
enable :sessions | |
get '/' do |
This file contains 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
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' |
OlderNewer