Discover gists
![dropit.jpg](https://gist.github.com/imownbey/1124/raw/30e7fd1d7cc16a3610eb5f502203b7e04d688a34/dropit.jpg)
This file contains 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
// 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(); | |
} |
This file contains 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
module Fooable | |
def self.included(base) | |
base.extend(MacroMethods) | |
end | |
module MacroMethods | |
def acts_as_fooable | |
# some code here | |
end | |
end |
This file contains 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
dfasds | |
testing fork |
This file contains 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
module Spec | |
module Matchers | |
class EqlHash #:nodoc: | |
def initialize(expected) | |
@expected = expected | |
end | |
def matches?(actual) | |
@actual = actual |
This file contains 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
poop |
This file contains 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
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] |
This file contains 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
testing |
This file contains 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
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] |
This file contains 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
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) |