Public Gists by wycats

Gravatar
Sat Nov 07 07:00:47 -0800 2009
1
2
3
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
 
Gravatar
Fri Nov 06 14:10:48 -0800 2009
1
2
3
    def evaluate(scope, locals, &block)
      source, offset = local_assignment_code(locals)
      source = [source, template_source].join("\n")
Gravatar
Fri Nov 06 13:48:16 -0800 2009
1
2
3
module CompiledTemplates
end
 
Gravatar
Thu Nov 05 20:29:00 -0800 2009
1
2
3
module Nokogiri
  module XML
    class NodeSet
Gravatar
Wed Nov 04 15:54:06 -0800 2009
1
2
3
#!/usr/bin/env bash
 
rm -rf tmp
Gravatar
Tue Nov 03 19:34:10 -0800 2009
1
2
3
commit a2692ca7104828ce6da0c747528a18aa17a19501
Author: Yehuda Katz <wycats@Yehuda-Katz.local>
Date: Tue Nov 3 19:25:36 2009 -0800
Gravatar
Tue Nov 03 18:42:10 -0800 2009
1
2
3
+ interface "ActiveModel" do
+ Boolean = [TrueClass, FalseClass]
+ method :valid? => "Boolean"
Gravatar
Tue Nov 03 01:15:41 -0800 2009
1
2
3
# You can test whether an object is compliant with the ActiveModel API by
# including ActiveModel::Lint::Tests in your TestCase. It will included
# tests that tell you whether your object is fully compliant, or if not,
Gravatar
Tue Nov 03 00:44:35 -0800 2009
1
2
3
def foo(str, str2)
  p [str, str2]
end
Gravatar
Mon Nov 02 23:21:04 -0800 2009
1
2
3
require "#{File.dirname(__FILE__)}/../vendor/bundler_gems/environment"
 
class Rails::Boot
Gravatar
Sat Oct 31 17:58:40 -0700 2009
1
2
3
fill_in "_article" do # optional, normally determined by the filename
  on("$article").add_class("article.status").attr("id", "article_#{article.id}")
  
Gravatar
Sat Oct 31 17:24:54 -0700 2009
1
2
3
require "abstract_controller/logger"
 
module AbstractController
Gravatar
Thu Oct 29 21:36:11 -0700 2009
1
2
3
Hi
Please let me know if you know someone for these 10 Positions.
Location: Peninsula 650 Area Code
Gravatar
Thu Oct 29 00:22:14 -0700 2009
1
2
3
diff --git a/actionpack/lib/action_controller/caching/actions.rb b/actionpack/lib/action_controller/caching/actions.rb
index cb0c3a1..35111a4 100644
--- a/actionpack/lib/action_controller/caching/actions.rb
Gravatar
Thu Oct 29 00:17:16 -0700 2009
1
2
3
diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb
index 38cf1da..6eaf40c 100644
--- a/actionpack/lib/action_controller/caching.rb
Gravatar
Wed Oct 28 13:47:47 -0700 2009
1
2
3
       class ActionCacheFilter #:nodoc:
         def initialize(options, &block)
- @options = options
Gravatar
Mon Oct 26 23:48:39 -0700 2009
1
2
3
   def test_event_is_parent_based_on_time_frame
- parent = event(:foo, :time => Time.utc(2009), :duration => 10000)
- child = event(:foo, :time => Time.utc(2009, 01, 01, 0, 0, 1), :duration => 1000)
Gravatar
Mon Oct 26 13:07:42 -0700 2009
1
2
3
# Three meals a day
# No snacks
## One fruit between meals if physically hungry only
Gravatar
Mon Oct 26 12:49:59 -0700 2009
1
2
3
require "#{File.dirname(__FILE__)}/../vendor/bundler_gems/environment"
 
class Rails::Boot
Gravatar
Fri Oct 23 22:57:01 -0700 2009
1
2
3
class Rails::Boot
  def run
    load_initializer