Public Gists by cpjolicoeur

Gravatar
Thu Oct 15 12:39:19 -0700 2009

      
Gravatar
Sat Sep 26 17:19:50 -0700 2009
1
2
3
install_driver(mysql) failed: Can't load '/usr/local/ActivePerl-5.10/site/lib/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/usr/local/ActivePerl-5.10/site/lib/auto/DBD/mysql/mysql.bundle, 1): no suitable image found. Did find:
/usr/local/ActivePerl-5.10/site/lib/auto/DBD/mysql/mysql.bundle: mach-o, but wrong architecture at /usr/local/ActivePerl-5.10/lib/DynaLoader.pm line 205.
 at (eval 7) line 3
Gravatar
Tue Apr 28 18:35:03 -0700 2009
1
2
3
## The pattern matcher in both the following will match either the single or double quote
## at the start of the src= attribute (this is what is available in $1
 
Gravatar
Thu Jan 08 10:41:39 -0800 2009
1
2
3
# use the ubuntu machine gem
require 'capistrano/ext/ubuntu-machine'
 
gist: 44470 problems with mock/stubbing...
Gravatar
Wed Jan 07 14:06:03 -0800 2009
1
2
3
require 'spreadsheet'
 
class ExcelExport
Gravatar
Wed Jan 07 13:25:56 -0800 2009
1
2
3
    before(:all) do
      @report = reports(:reports_001)
      @site = sites(:chatswood)
Gravatar
Thu Jan 01 13:38:54 -0800 2009
1
2
3
# Why build a site? Why do your customers care?
 
The core purpose of a website is to help your customers answer the questions necessary to do business with you.
Gravatar
Mon Dec 29 13:15:47 -0800 2008
1
2
3
# SUPER DARING APP TEMPLATE 1.0
# By Peter Cooper
 
gist: 35280 This test actually passes. ...
Gravatar
Fri Dec 12 13:33:57 -0800 2008
1
2
3
  def test_should_add_a_conversation_subscription
    user = Factory.create( :user )
    convo = Factory.create( :conversation )
Gravatar
Fri Dec 12 06:59:49 -0800 2008
1
2
3
let's make a list of sinatra-based apps!
 
apps:
Gravatar
Wed Nov 19 12:49:23 -0800 2008
1
2
3
  <script type="text/javascript" charset="utf-8">
    var turnover_gauge = <%= query_data['turnover-gauges'].first.to_json -%>;
    var data = turnover_gauge.data_warehouse.MIN_TURNOVER;
Gravatar
Fri Nov 14 07:51:25 -0800 2008
1
2
3
## FORM
 
- form_for @user, :html => { :multipart => true } do |f|
Gravatar
Wed Nov 05 07:58:32 -0800 2008
1
2
3
 validates_presence_of :home_site, :unless => Proc.new { |u| u.superuser? }
 
##
Gravatar
Tue Sep 30 07:35:44 -0700 2008
1
2
3
before(:each) do
  controller.should_receive(:check_authorization).and_return(true)
end