Skip to content

Instantly share code, notes, and snippets.

View nicholaides's full-sized avatar

Mike Nicholaides nicholaides

View GitHub Profile
@nicholaides
nicholaides / .rspec
Created March 17, 2011 19:56
Spec helper w/ Spork. Spork pre, Rails 3, Rspec 2
--color
--debug
--backtrace
--drb
@nicholaides
nicholaides / chaing.javascript
Created February 28, 2011 15:42
How do you do this in coffeescipt?
var req = $.get('foo.htm')
.success(function( response ){
// do something with the response
})
.error(function(){
// do something if the request failed
});
<!-- app/views/houdini_templates/post.html.erb -->
<h2>Review the image for offensiveness</h2>
<h3>Instructions</h3>
<p>Please review the image below.</p>
<img src="<%= post.image_url %>">
<p>