Skip to content

Instantly share code, notes, and snippets.

@rich
Created January 28, 2010 04:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rich/288445 to your computer and use it in GitHub Desktop.
Save rich/288445 to your computer and use it in GitHub Desktop.
require 'rubygems'
begin
gem 'doesntexist'
rescue Gem::LoadError
end
gem 'nokogiri', '~> 1'
require 'nokogiri'
puts "Memory usage: " + `ps u #{Process.pid}`.split("\n").last.split[5]
$: << File.join(File.dirname(__FILE__), '..', 'lib')
require 'jambi'
begin
gem 'doesntexist'
rescue Gem::LoadError
end
gem 'nokogiri', '~> 1'
require 'nokogiri'
puts "Memory usage: " + `ps u #{Process.pid}`.split("\n").last.split[5]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment