My Recent Pastes (250 and counting)
All Pasties (over 250 and counting)
Below are summaries of the 15 most recent pasties by Josh Goebel.
September 23, 2007
5:05PM EDT
by Josh Goebel
View more (16 lines)
1 2 3 4 5 |
def self.waiting
find(:all, :conditions => { :status => "WAITING"} )
end
def self.process_all!
|
September 23, 2007
4:50PM EDT
by Josh Goebel
View more (12 lines)
1 2 3 4 5 |
def self.waiting
find(:all, :conditions => { :status => "WAITING"} )
end
def self.process_all!
|
September 23, 2007
5:54AM EDT
by Josh Goebel
View more (10 lines)
1 2 3 4 5 |
# allow specifies to be included inside modules
class ::Module
def specify(name, &block)
define_method 'test_' + convert_bdd_name(name), &block
end
|
September 23, 2007
5:41AM EDT
by Josh Goebel
View more (33 lines)
1 2 3 4 5 |
if RAILS_ENV == 'test'
Object.class_eval do
def self.superclasses
return Set.new if superclass.nil?
superclass.superclasses.dup << superclass
|
September 20, 2007
2:00AM EDT
by Josh Goebel
View more (7 lines)
1 2 3 4 5 |
def check_format
@import=@school.imports.find(params[:id])
render :action => "check_format"
rescue FasterCSV::MalformedCSVError
@invalid_csv=true
|
September 17, 2007
3:56PM EDT
by Josh Goebel
View more (6 lines)
1 2 3 4 5 |
def test_should_unset_remember_token
users(:advisor).remember_me
assert_not_nil users(:advisor).remember_token
users(:advisor).forget_me
assert_nil users(:advisor).remember_token
|
September 17, 2007
3:03PM EDT
by Josh Goebel
View more (9 lines)
1 2 3 4 5 |
def test_valid_subdomains
#valid ones
@school=new_school
@school.subdomain="testing"
assert @school.valid?
|
September 16, 2007
12:51PM EDT
by Josh Goebel
View more (92 lines)
1 2 3 4 5 |
# Created by Satoshi Nakagawa. # You can redistribute it and/or modify it under the Ruby's license or the GPL2. require 'dialoghelper' |
September 16, 2007
12:43PM EDT
by Josh Goebel
View more (92 lines)
1 2 3 4 5 |
# Created by Satoshi Nakagawa. # You can redistribute it and/or modify it under the Ruby's license or the GPL2. require 'dialoghelper' |
September 16, 2007
12:35PM EDT
by Josh Goebel
View more (88 lines)
1 2 3 4 5 |
# Created by Satoshi Nakagawa. # You can redistribute it and/or modify it under the Ruby's license or the GPL2. require 'dialoghelper' |
September 16, 2007
12:14PM EDT
by Josh Goebel
View more (18 lines)
1 2 3 4 5 |
class PasteSheet < CocoaSheet ib_outlet :sheet, :text, :sendButton default_button "Send" buttons "Send" => 1, "Cancel" => 0 |
September 16, 2007
12:03PM EDT
by Josh Goebel
View more (85 lines)
1 2 3 4 5 |
class CocoaSheet < OSX::NSObject include OSX include DialogHelper attr_accessor :window, :delegate, :prefix, :uid, :cid attr_reader :modal |
September 16, 2007
6:35AM EDT
by Josh Goebel
View more (122 lines)
1 2 3 4 5 |
Index: /Users/jgoebel/Desktop/limechat_svn/ruby/controller/appcontroller.rb =================================================================== --- /Users/jgoebel/Desktop/limechat_svn/ruby/controller/appcontroller.rb (revision 258) +++ /Users/jgoebel/Desktop/limechat_svn/ruby/controller/appcontroller.rb (working copy) @@ -280,7 +280,7 @@ |
September 16, 2007
6:13AM EDT
by Josh Goebel
View more (23 lines)
1 2 3 4 5 |
def receive_text(m, command, text)
nick = m.sender_nick
target = m[0]
if target.channelname?
|
September 16, 2007
5:11AM EDT
by Josh Goebel
View more (17 lines)
1 2 3 4 5 |
case cmd
when :me
cmd = :action
if @world.selunit == self && @world.selchannel
target = @world.selchannel.name
|
Pastie