My Recent Pastes (100 and counting)

All Pasties (over 100 and counting)

Pages: 1 3 4 5 6 7

Below are summaries of the 15 most recent pasties by bryan.

August 29, 2008
8:06AM EDT
by bryan

1
2
3
4
5
  def task_state
    %w[to_do in_progress done].each do |state|      
      if key = params.keys.find{|k| k =~ %r{^#{state}}}
        story_id = key.gsub("#{state}_", '')
        story = Story.find(story_id)

August 08, 2008
11:57AM EDT
by bryan

1
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

June 16, 2008
5:08PM EDT
by bryan

1
2
3
4
5
## source.rb
require 'rubygems'
require 'xmpp4r-simple'

class BackendStatus

April 29, 2008
9:04AM EDT
by bryan

1
2
3
4
5
## user_scenario.rb
class UsersScenario < Scenario::Base
  def load
    create_record :user, :admin, :name => 'admin', :login => 'admin', :email => 'admin@example.com', :admin => true 
  end

April 23, 2008
9:49AM EDT
by bryan

1
2
3
4
5
class AuditReporter 
  include ActionView::Helpers::UrlHelper 
  
  def initialize(audit, template)
    @audit = audit

April 23, 2008
9:49AM EDT
by bryan

1
2
3
4
5
class AuditReporter 
  include ActionView::Helpers::UrlHelper 
  
  def initialize(audit, template)
    @audit = audit

April 23, 2008
9:27AM EDT
by bryan

1
2
3
4
5
class AuditReporter  
  include ActionController::PolymorphicRoutes
  
  def initialize(audit, template)
    @audit = audit

March 13, 2008
9:58AM EDT
by bryan

1
2
3
4
5
## migration.rb
class CreateTickets < ActiveRecord::Migration
  def self.up
    create_table "ticket_ticket", :primary_key => "webticketid", :id => true, :force => true do |t|
      

March 04, 2008
3:58PM EDT
by bryan

1
2
3
4
5
  def self.popluate_from_collector(profile, template)
    destroy_all
    Artifact.find_all_by_profile_and_template(profile, template).each do |artifact|
      metadata = Metadatum.find_all_by_artifact(profile, template, artifact.id)
      

January 30, 2008
9:26AM EDT
by bryan

1
2
3
4
5
class CowController < ApplicationController
  
  # 1
  def index
    @kine = Cow.find(:all)

January 30, 2008
9:06AM EDT
by bryan

1
2
3
4
5
class CowController < ApplicationController
  
  # 1
  def index
    @kine = Cow.find(:all)

January 28, 2008
3:04PM EDT
by bryan

1
2
3
4
5
require File.join(RAILS_ROOT, "stories", "helper")

# FIXME we shouldn't need this
# with rspec 1.1.2, this is here to combat some of that at_exit stuff
# that makes this not run

January 28, 2008
1:02PM EDT
by bryan

1
2
3
4
5
running in: [/Users/bryan/Desktop/Pending/project/support_project/stories/features]
running in: [/Users/bryan/Desktop/Pending/project/support_project/stories/features/foo]
running [bar.story] with steps [foo]

running in: [/Users/bryan/Desktop/Pending/project/support_project/stories/features/login]

January 22, 2008
3:35PM EDT
by bryan

1
2
3
4
5
ldap:
  development:
    server: local-ldap
  production:
    server: prod-ldap

January 22, 2008
2:48PM EDT
by bryan

1
2
CachedModel.use_local_cache = false
CachedModel.use_memcache = false

Next page