This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.common.base.Predicate; | |
import com.google.common.base.Supplier; | |
import com.google.common.base.Suppliers; | |
import com.google.common.cache.Cache; | |
import com.google.common.cache.CacheBuilder; | |
import com.google.common.cache.CacheLoader; | |
import com.google.common.collect.ArrayListMultimap; | |
import com.google.common.collect.Iterables; | |
import com.google.common.collect.Multimap; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
end | |
puts Foo.new | |
f = Foo.new | |
f.instance_eval do |e| | |
meta = class << e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Connection | |
require 'net/http' | |
TEST_HOST = 'www.example.com' | |
TEST_PORT = 80 | |
TEST_PATH = '/index.html' | |
# yields either one of the supplied proxy or :unrestricted (no proxy) or :restricted (nothing worked) | |
def self.quality? *proxies |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unzip -o \*.jar -x META-INF/*; rm *.jar |
NewerOlder