My Recent Pastes (41 and counting)
Pastes by mrneighborly (41 and counting)
Below are the 11 most recent pasties by mrneighborly.
April 16, 2007
1:19AM EDT
by mrneighborly
View all 300 lines
#!/usr/bin/env ruby $:.unshift File.dirname(__FILE__) + "/../../lib" require 'camping' require 'camping/session'
April 16, 2007
1:02AM EDT
by mrneighborly
View all 18 lines
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
View all 37 lines
module Kindling module Filters @before_filters = [] @after_filter = []
April 16, 2007
12:38AM EDT
by mrneighborly
View all 31 lines
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
View all 29 lines
#!/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
View all 7 lines
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
View all 39 lines
class Node def initialize(ip) @ip = ip end
March 15, 2007
2:31PM EDT
by mrneighborly
View all 13 lines
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
View all 9 lines
class OutputCompressionFilter def self.filter(controller) controller.response.body = compress(controller.response.body) end end
June 24, 2006
10:33PM EDT
by mrneighborly
View all 27 lines
require 'rubygems' require_gem 'activerecord' class BooksToDo < ActiveRecord::Base set_table_name "books"