Public Gists by tenderlove

Gravatar
Fri Nov 20 09:10:04 -0800 2009
1
2
3
require 'test/unit'
require 'rubygems'
require 'nokogiri'
Gravatar
Mon Nov 16 13:48:15 -0800 2009
1
2
3
$ make check
Making check in include
make[1]: Nothing to be done for `check'.
Gravatar
Tue Nov 10 23:57:30 -0800 2009
1
2
3
<p>Greg Robb <a href="http://www.marketwatch.com/story/jobs-and-growth-argue-for-low-rates-fed-officials-2009-11-10">reports</a> for MarketWatch:</p>
 
<blockquote>
Gravatar
Tue Nov 10 16:15:14 -0800 2009
1
2
3
class Fancy
  def self.test
    puts "Ask me a question:"
Gravatar
Thu Nov 05 20:35:26 -0800 2009
1
2
3
require 'nokogiri'
 
doc = Nokogiri::HTML DATA
Gravatar
Mon Nov 02 13:47:02 -0800 2009
1
2
3
" Changelog configuration
" let $TZ='japan'
let g:changelog_username='Aaron Patterson <tenderlove@ruby-lang.org>'
Gravatar
Fri Oct 30 16:03:31 -0700 2009
1
2
3
# This is pretty evil, yeah... I know
class Module
end
Gravatar
Tue Oct 27 23:42:06 -0700 2009
1
2
3
# echo
 
## Usage
Gravatar
Tue Oct 27 10:59:38 -0700 2009
1
2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
Gravatar
Mon Oct 26 16:18:36 -0700 2009
1
2
3
require 'benchmark'
 
n = 10000000
Gravatar
Fri Oct 16 11:50:11 -0700 2009
1
2
3
Test Depth: default
 
/fap/index.html.erb
Gravatar
Wed Oct 14 12:14:26 -0700 2009
1
2
3
[apatterson@mobile-166-129-147-076 ~]$ /usr/bin/gcc -I. -I/usr/include -I/usr/include/libxml2 -I/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/include/ruby-1.9.0/universal-darwin10.0 -I/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/include/ruby-1.9.0/ruby/backward -I/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/include/ruby-1.9.0 -I. -fno-common -pipe -O3 -g -Wall -g -DXP_UNIX -Wall -arch i386 -arch x86_64 -o test.o -c test.c
In file included from /usr/include/libxml2/libxml/parser.h:19,
                 from test.c:2:
Gravatar
Tue Oct 13 17:11:59 -0700 2009
1
2
3
#include <stdlib.h>
#include <string.h>
#include <libxml/parser.h>
Gravatar
Sun Oct 04 23:08:59 -0700 2009
1
2
3
require 'benchmark'
require 'examples/complex_view'
 
Gravatar
Fri Oct 02 11:30:49 -0700 2009
1
2
3
require 'nokogiri'
 
doc = Nokogiri::XML(DATA)
Gravatar
Fri Oct 02 11:25:41 -0700 2009
1
2
3
list = [1,2,3,4,5]
 
list.each_slice(3) do |sublist|
Gravatar
Thu Sep 24 19:40:16 -0700 2009
1
2
3
require 'test/unit'
 
module InheritIV
Gravatar
Thu Sep 24 11:03:48 -0700 2009
1
2
3
diff --git a/activesupport/lib/active_support/concern.rb b/activesupport/lib/active_support/concern.rb
index dcf1e81..79d4f84 100644
--- a/activesupport/lib/active_support/concern.rb
Gravatar
Wed Sep 23 10:52:29 -0700 2009
1
2
3
  def test_method_call
    x = Class.new {
      attr_reader :called
Gravatar
Tue Sep 22 10:24:06 -0700 2009
1
2
3
class SomeClass
  def initialize(options = {})
    load_config