My Recent Pastes (41 and counting)

Pastes by mrneighborly (41 and counting)

Pages:

Below are the 11 most recent pasties by mrneighborly.

April 16, 2007
1:19AM EDT
by mrneighborly

#!/usr/bin/env ruby

$:.unshift File.dirname(__FILE__) + "/../../lib"
require 'camping'
require 'camping/session'

April 16, 2007
1:02AM EDT
by mrneighborly

jeremy-mcanallys-computer:~ jeremymcanally$ camping blog.rb 
!! trouble loading blog: [NameError] wrong constant name set_value
(eval):45:in `const_get'
(eval):45:in `method_missing'
/Users/jeremymcanally/blog.rb:34

April 16, 2007
12:51AM EDT
by mrneighborly

module Kindling
  module Filters
    @before_filters = []
    @after_filter = []
    

April 16, 2007
12:38AM EDT
by mrneighborly

module Kindling
  module Filters
    @before_filters = []
    @after_filter = []
    

April 09, 2007
11:57AM EDT
by mrneighborly

subversion/libsvn_ra_dav/util.c:296: (apr_err=175002)
svn: MKACTIVITY of '/testassured/!svn/act/9325c60d-b02d-0410-9f2b-f3b0046809f1': 404 Not Found (http://www.jeremymcanally.com)

April 09, 2007
11:24AM EDT
by mrneighborly

#!/usr/bin/env ruby

# Test Assured - test_assured.rb / pre-commit
# This ensures that testing code exists for each and every
# Ruby code file that is committed; if it does not exist,

March 24, 2007
11:44PM EDT
by mrneighborly

    def self.up
      create_table :entries, :force => true do |t|
        t.column :id,          :integer, :null => false
        t.column :text,        :string
        t.column :created_at,  :date

March 15, 2007
2:40PM EDT
by mrneighborly

class Node
  def initialize(ip)
    @ip = ip
  end
  

March 15, 2007
2:31PM EDT
by mrneighborly

Server class
  - attr_reader(or accessor) nodes (instance of NodeList)
  
NodeList < Array
  - implement first, last, etc. methods or use method_missing

June 24, 2006
11:41PM EDT
by mrneighborly

  class OutputCompressionFilter
    def self.filter(controller)
      controller.response.body = compress(controller.response.body)
    end
  end

June 24, 2006
10:33PM EDT
by mrneighborly

require 'rubygems'
require_gem 'activerecord'

class BooksToDo < ActiveRecord::Base
     set_table_name "books"

Previous page