Skip to content

Instantly share code, notes, and snippets.

// Check whether the regex is in the compareTo string
private boolean contains(String regex, String compareTo)
{
Pattern p = Pattern.compile(regex);
Matcher m = p.matcher(compareTo);
return m.matches();
}
module Fooable
def self.included(base)
base.extend(MacroMethods)
end
module MacroMethods
def acts_as_fooable
# some code here
end
end
dfasds
testing fork
module Spec
module Matchers
class EqlHash #:nodoc:
def initialize(expected)
@expected = expected
end
def matches?(actual)
@actual = actual
@heycarsten
heycarsten / gist:1163
Created July 22, 2008 17:40
Access list for #rubyfringe, if you want access let me know and I'll be glad to add you.
access #rubyfringe list
1 heycarsten +votsriRfAF [modified ? ago]
2 wmoxam +oOtsi [modified 4 hours, 44 minutes, 28 seconds ago]
3 Nex3 +oOtsi [modified 4 hours, 44 minutes, 36 seconds ago]
4 anteaya +oOtsi [modified 4 hours, 44 minutes, 14 seconds ago]
5 hiffy +oOtsi [modified 4 hours, 43 minutes, 46 seconds ago]
6 iambpentameter +oOtsi [modified 4 hours, 42 minutes, 55 seconds ago]
7 AccordionGuy +oOtsi [modified 4 hours, 42 minutes, 28 seconds ago]
8 elight +oOtsi [modified 4 hours, 42 minutes, 18 seconds ago]
require 'rubygems'
require 'rfacebook'
RAILS_ROOT = File.expand_path(File.dirname(__FILE__) + '/..') unless defined? RAILS_ROOT
RAILS_ENV = ENV['RAILS_ENV'] || 'development' unless defined? RAILS_ENV
require File.join(RAILS_ROOT, 'config', 'initializers', 'starling')
ConfigFace = YAML.load_file(File.join(RAILS_ROOT, 'config', 'facebook.yml'))[RAILS_ENV]
CURRENT PROBLEM:
d.query is not a function
parse()()/wccommo...parser.js (line 227)
parseRunner()()/wccommo...parser.js (line 240)
loaded()()loader.js (line 146)
_callLoaded()()loader.js (line 243)
_modulesLoaded()()loader.js (line 224)
_loadInit()(DOMContentLoaded )hostenv_...rowser.js (line 256)
[Break on this error] var list = d.query(qry, rootNode);
/wccommo...parser.js (line 227)