Skip to content

Instantly share code, notes, and snippets.

View will's full-sized avatar
🆒
ه҈ͣفͤ҈ͥ҉ͦ҈ͧ҉ͨ҈ͩ҉ͪ҈ͫ҉ͬ҈ͭ҉ͮ҈ͯ҉ͨ҈ͬ҉ͧ҈ͣ҉ͨ҈ͧ҉ͯ҈ͮ҉ͭ҈ͤ҉ͦ҈ͥ҉ͧ҈ͩ҉ͭ҈ͨ҉ͣ҈ͪ҉ͧ҈ͭ҉ͩ҈ͤ҉ͮ҈ͯ҉ͬ҈

Will Leinweber will

🆒
ه҈ͣفͤ҈ͥ҉ͦ҈ͧ҉ͨ҈ͩ҉ͪ҈ͫ҉ͬ҈ͭ҉ͮ҈ͯ҉ͨ҈ͬ҉ͧ҈ͣ҉ͨ҈ͧ҉ͯ҈ͮ҉ͭ҈ͤ҉ͦ҈ͥ҉ͧ҈ͩ҉ͭ҈ͨ҉ͣ҈ͪ҉ͧ҈ͭ҉ͩ҈ͤ҉ͮ҈ͯ҉ͬ҈
View GitHub Profile
#!/usr/bin/env jruby
require 'rubygems'
require 'celerity'
url = "http://uiuc.us/jquery.html"
puts "url should be #{url}"
[:firefox, :internet_explorer].each do |browser|
b = Celerity::Browser.new :log_level => :severe, :browser => browser
b.goto url
require 'metric_fu'
task "metrics:all" do
require 'yaml'
require 'couchrest'
require 'grit'
report = File.open( File.join( RAILS_ROOT, "tmp", "metric_fu", "report.yml") ) { |f| YAML::load f }
repo = Grit::Repo.new(Dir.pwd)
commit = repo.commits.first

Twilight Zone Watchlist

fork this list and add/remove suggestions or move things up to the watch queue please!

queue

  1. The Obsolete Man
  • The Monsters Are Due On Maple Street
  • Eye of the Beholder
  • Time Enough At Last
module Integrity
class Notifier
class Arduino < Notifier::Base
def self.to_haml
""
end
def deliver!
if build.failed?
Arduino.send "r"
@will
will / gist:217655
Created October 24, 2009 18:19 — forked from jseifer/gist:217637
#! /usr/bin/env ruby
#
# Save in your path as "isreg" and chmod +x. Then: isreg domain.com
#
puts `whois #{ARGV[0]}` =~ /No match for \"#{ARGV[0]}\"/mi ? "Hell No" : "Fuck Yes"
From 59c9acddfa87a5391f088153994f607208be57c1 Mon Sep 17 00:00:00 2001
From: Will Leinweber <will@bitfission.com>
Date: Mon, 16 Nov 2009 00:25:27 -0600
Subject: [PATCH] Documentation patch
* remove compiler from bootstrapping guide
* add more detailed information on some of the bootstrapping stages
* rename subtend to capi in most of the docs
** except the example in rubinius_spec.txt
---
@will
will / ~.rb
Created November 21, 2009 17:40
class String
def ~
self.reverse
end
end
~"hello" # => "olleh"
Results 46.85
System Info
Xbench Version 1.3
System Version 10.5.8 (9L31a)
Physical RAM 4096 MB
Model MacBook5,1
Drive Type FUJITSU MHZ2250BH FFS G1
Disk Test 46.85
Sequential 68.30
Uncached Write 88.60 54.40 MB/sec [4K blocks]
# randomly failing
# so this hack retries features
# i'm so, so sorry
class CucumberFeature
def initialize(path)
@path = path
@result = run
end
@will
will / evil.rb
Created January 19, 2010 04:19
# worst thing you can do to someone in ruby?
# fork this and add other evil
class Module
def method_added(method)
undef_method method if rand > 0.999999
end
end