Public Gists by wycats

Gravatar
Tue Nov 10 13:59:54 -0800 2009
1
2
3
 
  % cumulative self self total
 time seconds seconds calls ms/call ms/call name
Gravatar
Tue Nov 10 00:06:14 -0800 2009
1
2
3
# them
@server = Jetty::Server.new
thread_pool = Jetty::Thread::QueuedThreadPool.new
Gravatar
Mon Nov 09 23:59:15 -0800 2009
1
2
3
$:.push File.join(Dir.pwd, "lib")
 
Dir["#{Dir.pwd}/lib/*.jar"].each do |file|
Gravatar
Mon Nov 09 17:07:21 -0800 2009
1
2
3
read, write = IO.pipe
 
Thread.new {
Gravatar
Mon Nov 09 12:03:01 -0800 2009
1
2
3
class Person
  attr_reader :name
  
Gravatar
Sun Nov 08 20:06:12 -0800 2009
1
2
3
$ ruby -Ilib -Itest -ractive_support/dependency_tracking -ractive_support/all -e 'TrackingUtility.initialize_tracking!; "Dastels".humanize'
ActiveSupport::Inflector::Inflections
=====================================
Gravatar
Sun Nov 08 18:49:34 -0800 2009
1
2
3
Numeric
=======
                                 seconds AS/core_ext/numeric/time.rb:32
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