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
group :assets do | |
gem 'sass-rails', '~> 3.1.0' | |
gem 'coffee-rails', '~> 3.1.0' | |
gem 'uglifier' | |
gem 'compass', '~> 0.12.alpha' | |
# include other compass plugins here. E.g.: | |
gem 'compass-susy-plugin', :require => 'susy' | |
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
--color | |
--format documentation | |
--fail-fast |
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
.CodeRay { | |
background-color: #f8f8f8; | |
border: 1px solid silver; | |
font-family: 'Courier New', 'Terminal', monospace; | |
color: #000; | |
} | |
.CodeRay pre { margin: 0px } | |
div.CodeRay { } |
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
$.fn.forEach = (callback) -> | |
this.each -> | |
callback.call $(this) | |
$("div").forEach -> | |
console.log this |
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
http://images2.memegenerator.net/ImageMacro/7236961/DHH-Y-U-NO-USE-JUST-THE-LIBS-I-LIKE-NOTHING-MORE.jpg?imageSize=Big&generatorName=Why-you-no | |
http://images2.memegenerator.net/ImageMacro/7238009/HEY-DHH-CMON-MAN.jpg?imageSize=Big&generatorName=Ronald-McDonald-Call | |
http://images2.memegenerator.net/ImageMacro/7238407/Must-say-me-likes-coffeescript.jpg?imageSize=Big&generatorName=Batman-smiley | |
http://images2.memegenerator.net/ImageMacro/7238669/hey-Dhh-catch.jpg?imageSize=Big&generatorName=batmanvtt | |
http://images2.memegenerator.net/ImageMacro/7238111/learn-real-js-be-awesome-like-me.jpg?imageSize=Big&generatorName=gordo-granudo | |
http://images2.memegenerator.net/ImageMacro/7238291/Geeez-What-a-bunch-of-idiots.jpg?imageSize=Big&generatorName=batmanvtt | |
http://images1.memegenerator.net/ImageMacro/7238522/i-cant-fuckin-believe-this.jpg?imageSize=Big&generatorName=batmanvtt | |
Use it like this: |
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
describe Foo | |
describe ".setup" do | |
it "should capture a Mongo connection for the specified environment host" do | |
Mongo::Connection.stub(:new) { |param| param.should == host } | |
Foo.setup config, environment | |
end | |
end | |
describe ".connection" do |
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
function eventForSelectorHandler(selector, eventType) { | |
var lives = jQuery.data(document, "events").live; | |
for (var i = 0; i < lives.length; i++) { | |
var live = lives[i]; | |
if ($(selector).is(live.selector)) { | |
var event = $.Event(eventType); | |
live.handler.call($(selector)[0], event); | |
return event; | |
} | |
} |
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
/^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$/ix |
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
def should_be_delivered_on_creation_with(clazz) | |
context "on creation" do | |
it "should be send on an email" do | |
mailer = mock(clazz) | |
clazz.should_receive(subject.class.to_s.underscore).with(an_instance_of(subject.class)).and_return(mailer) | |
mailer.should_receive :deliver | |
Factory subject.class.to_s.underscore | |
end | |
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
[user] | |
email = dc.rec1@gmail.com | |
name = Diego Carrion | |
[alias] | |
st = status | |
ci = commit | |
br = branch | |
co = checkout | |
df = diff | |
lg = log -p |