Public Gists by jbarnette

Gravatar
Tue Nov 10 11:58:58 -0800 2009
1
2
3
# Hoptoad integration example.
 
task "deploy:before" => "isolate:dotgems" do
Gravatar
Wed Nov 04 13:10:09 -0800 2009
1
2
3
require "test_helper"
require "action_view/test_case"
 
Gravatar
Mon Oct 26 20:56:38 -0700 2009
1
2
3
# This could easily be forked to avoid the environment load penalty.
# I don't care, since I only run it periodically. It helps me catch
# sloppy stuff in test files that changes the behavior of others, like
Gravatar
Wed Sep 23 21:12:05 -0700 2009
1
2
3
(in /Users/drnic/newproj)
rake announce # publish # Announce your release.
rake check_extra_deps # deps # Install missing dependencies.
Gravatar
Mon Sep 21 23:06:25 -0700 2009
1
2
3
1)
'Bundler::Environment only requires gems specific to the requested environment' FAILED
expected: "nil",
Gravatar
Thu Sep 10 13:45:47 -0700 2009
1
2
3
# e.g.,
# rake db:pg test
# ...swaps database.yml, runs the tests, and swaps back to the default.
Gravatar
Wed Aug 26 13:20:30 -0700 2009
1
2
3
RAILS_ROOT ||= ENV["RAILS_ROOT"]
 
namespace :bundle do
Gravatar
Mon Jul 27 14:39:41 -0700 2009
1
2
3
diff --git a/lib/hoe/git.rb b/lib/hoe/git.rb
index 463d5c0..c51e70b 100644
--- a/lib/hoe/git.rb
Gravatar
Fri May 22 15:00:55 -0700 2009
1
2
3
Stuart Mackenzie: Well, it's a well known fact, Sonny Jim, that there's a secret
                   society of the five wealthiest people in the world, known as
                   The Pentavirate, who run everything in the world, including
Gravatar
Wed May 13 23:45:14 -0700 2009
1
2
3
# Require adjacent
# by John Barnette
# to annoy Josh Susser and Aaron Patterson
Gravatar
Thu Feb 19 10:23:56 -0800 2009
1
2
3
module ModelTemplates
  @@cache = {}
  def self.cache; @@cache end
Gravatar
Sun Feb 08 23:05:08 -0800 2009
1
2
3
      class Calculator < Omerta::Grammar
        def initialize
          @vars = {}
Gravatar
Mon Jan 12 17:30:28 -0800 2009
1
2
3
on "#list" do
  map :bgcolor => :color
  
gist: 44506 An intercession.
Gravatar
Wed Jan 07 15:44:08 -0800 2009
1
2
3
class ApplicationController < ActionController::Base
  include Intercession
 
Gravatar
Mon Jan 05 20:23:22 -0800 2009
1
2
3
jbarnette@slice:/etc$ dpkg -l 'libxslt*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
Gravatar
Thu Dec 18 14:54:16 -0800 2008
1
2
3
# Note to Self
 
## Be Confident
Gravatar
Wed Nov 12 13:16:15 -0800 2008
1
2
3
/* Interpreter for Malbolge. */
/* '98 Ben Olmstead. */
/* */
Gravatar
Mon Nov 10 15:32:50 -0800 2008
1
2
3
namespace :db do
  task :migrate => :clear_load_paths do
    Dependencies.load_paths = @old_load_paths
Gravatar
Fri Sep 26 12:54:00 -0700 2008
1
2
3
class Array
  def poke(item, &block)
    push(item)
Gravatar
Fri Sep 26 11:05:18 -0700 2008
1
2
3
require "rubygems"
require "johnson"