Public Gists by andrewtimberlake

Gravatar
Fri Jul 03 03:04:49 -0700 2009
1
2
3
process_definition :name => 'Trace Confirmation', :revision => '1' do
 
  sequence do
Gravatar
Fri Jul 03 00:01:04 -0700 2009
1
2
3
process_definition :name => 'Trace Confirmation', :revision => '1' do
 
  sequence do
Gravatar
Thu May 07 06:46:37 -0700 2009
1
2
3
undefined method `register_participant' for nil:NilClass
/home/andrew/dev/ruote-test/ruote-rest/lib/part.rb:81:in `register'
/home/andrew/dev/ruote-test/ruote-rest/lib/part.rb:63:in `add'
Gravatar
Wed May 06 03:10:19 -0700 2009
1
2
3
#My conf/participants file
module RuoteRest
  configure do
Gravatar
Sat Apr 04 23:25:21 -0700 2009
1
2
3
col1 = []
col2 = []
col3 = []
Gravatar
Thu Mar 26 04:57:55 -0700 2009
1
2
3
class AppServerConfiguration
  attr_accessor :port, :admin_password
end
Gravatar
Wed Jan 14 11:34:03 -0800 2009
1
2
3
columns(2, :width => margin_box.width) do
  column do
    text "Text for the left column"
Gravatar
Wed Jan 14 11:31:24 -0800 2009
1
2
3
start_y = y
bounding_box [0, cursor], :width => margin_box.width / 2 do
  text "Text for the left column"
Gravatar
Wed Jan 14 07:31:48 -0800 2009
1
2
3
Prawn::Document.generate "test.pdf" do
  stroke_horizontal_rule
  text "Some text\nwith a line break"
Gravatar
Wed Jan 14 07:31:19 -0800 2009
1
2
3
Prawn::Document.generate "test.pdf" do
  stroke_horizontal_rule
  text "Some text\nwith a line break"
Gravatar
Fri Jan 02 05:04:38 -0800 2009
1
2
3
- has_attachment :content_type => :image,
- :thumbnails => {
- :thumb => [80,80],
Gravatar
Fri Jan 02 04:52:10 -0800 2009
1
2
3
class ChangePhotoFromAttachmentFuToPaperclip < ActiveRecord::Migration
  def self.up
    #Reorganise the actual photos on AWS to suit the RWS/Paperclip schema
Gravatar
Fri Jan 02 04:46:31 -0800 2009
1
2
3
require 'right_aws'
 
namespace :utils do
gist: 41938 Will add a method to Array ...
Gravatar
Wed Dec 31 01:52:33 -0800 2008
1
2
3
class Array
  def tabalize(headings, justifications = nil, out = STDOUT)
    raise ArgumentError.new('only works on an array of arrays') if size > 0 && ![0].is_a?(Array)