Public Gists by joshnabbott

Gravatar
Thu Oct 29 13:39:34 -0700 2009
1
2
3
  new_image = Magick::Image.new(new_image_cols, new_image_rows) {
    self.background_color = params[:background_color]
    self.format = 'png'
Gravatar
Wed Sep 23 16:32:16 -0700 2009
1
2
3
#!/usr/bin/env ruby
require 'yaml'
 
Gravatar
Fri Sep 18 10:07:25 -0700 2009
1
2
3
 
 
 
Gravatar
Fri Sep 18 10:05:08 -0700 2009
1
2
3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
Gravatar
Sun Sep 13 23:50:37 -0700 2009
1
2
3
{
  :a => 2,
  # NOTE for partials, you need to include the format
Gravatar
Fri Apr 10 09:48:59 -0700 2009
1
2
3
module ActiveRecord
  module Searchable
    def self.included(base)
Gravatar
Mon Mar 30 09:40:46 -0700 2009
1
2
3
task :export do
require 'sequel'
require 'fastercsv'
Gravatar
Mon Jan 19 11:24:41 -0800 2009
1
2
3
describe "named_scopes" do
  it "should include one that returns products where active = true" do
    create_product(:active => true)