My Recent Pastes (901 and counting)
Pastes by headius (901 and counting)
Below are the 15 most recent pasties by headius.
December 16, 2008
6:35PM EDT
by headius
View
Includes file attachment.
December 04, 2008
5:13PM EDT
by headius
View more (31 lines)
/** * JRuby version, assumes the version to be of format major.minor.suffix */ private static class JRubyVersion {
December 03, 2008
6:19PM EDT
by headius
$ jruby -d -e "require 'nokogiri_java'; p Nokogiri; p Nokogiri::XML; p Nokogiri::XML::Node.instance_methods(false)" Nokogiri Nokogiri::XML ["internal_subset", "add_previous_sibling", "pointer_id", "name", "path", "parent_set", "remove_attribute", "to_xml", "parent", "child", "previous_sibling", "namespaces", "next_sibling", "key_p", "attributes", "type", "dup", "blank_p", "[]=", "unlink", "name_set", "content", "encode_special_chars", "add_next_sibling", "replace"]
December 03, 2008
5:03PM EDT
by headius
View more (767 lines)
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.jruby.ext.nokogiri;
December 02, 2008
11:44PM EDT
by headius
View
Includes file attachment.
December 02, 2008
11:24PM EDT
by headius
View more (65 lines)
static void
zstream_run(z, src, len, flush)
struct zstream *z;
Bytef *src;
uInt len;
December 02, 2008
7:08PM EDT
by headius
View more (19 lines)
## run_this.rb module BarForTestRequireOnce; end $foo = 0 BarForTestRequireOnce.autoload :Foo, "foo_for_test_autoload_once"
December 02, 2008
5:53PM EDT
by headius
View more (9 lines)
run-specs-compiled-short:
[echo] Excludes: /Users/headius/projects/jruby/spec/tags
[echo] compile=JIT, threshold=0, objectspace=true threadpool=false reflection=false
[java] jruby 1.1.5 (ruby 1.8.6 patchlevel 114) (2008-12-02 rev 8247) [x86_64-java]
[java] org.jruby.util.Qsort:434:in `partition': java.lang.ArrayIndexOutOfBoundsException: 25
December 02, 2008
5:32PM EDT
by headius
View more (32 lines)
## MRI
user system total real
sorted 0.000000 0.000000 0.000000 ( 0.000177)
sorted block 0.010000 0.000000 0.010000 ( 0.007715)
reversed 0.000000 0.000000 0.000000 ( 0.000176)
December 01, 2008
1:17AM EDT
by headius
View more (12 lines)
[headius @ cnutter:~/projects/jruby] ◆ jruby bench/bench_fib_recursive.rb 10 0.312245 0.015938 0.328183 ( 0.385518) 0.176707 0.000453 0.177160 ( 0.179923) 0.176446 0.000446 0.176892 ( 0.178486)
December 01, 2008
12:27AM EDT
by headius
View more (20 lines)
THREADS = 10 1000.times do threads = [] THREADS.times do
November 30, 2008
9:51PM EDT
by headius
View more (46 lines)
## relauncher.rb (run this) require 'jruby/vm' require 'socket' # listen on 3000
November 30, 2008
7:13PM EDT
by headius
View more (22 lines)
diff --git a/src/org/jruby/JRubyApplet.java b/src/org/jruby/JRubyApplet.javaindex b37b9df..81938ec 100644--- a/src/org/jruby/JRubyApplet.java+++ b/src/org/jruby/JRubyApplet.java@@ -56,6 +56,7 @@ import org.jruby.runtime.builtin.IRubyObject;
November 30, 2008
1:37PM EDT
by headius
View more (10 lines)
## jruby/openssl/autoloads/ssl.rb require 'rubygems' # try to activate jruby-openssl gem for OpenSSL::SSL, raising error if gem not present begin
