Skip to content

Instantly share code, notes, and snippets.

View ericdfields's full-sized avatar
🏠
Working from home in Baltimore, sometimes in DC

Eric Brookfield ericdfields

🏠
Working from home in Baltimore, sometimes in DC
View GitHub Profile
Eric-Fieldss-MacBook-Air:hiphosts eric$ ruby -S bundle exec rspec ./spec/models/address_spec.rb
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.8/lib/action_dispatch/http/response.rb:35: uninitialized constant Rack::Response (NameError)
from /Library/Ruby/Gems/1.8/gems/actionpack-3.0.8/lib/action_controller/metal/rack_delegation.rb:2
from /Library/Ruby/Gems/1.8/gems/actionpack-3.0.8/lib/action_controller/metal/redirecting.rb:14
from /Library/Ruby/Gems/1.8/gems/actionpack-3.0.8/lib/action_controller/base.rb:188
from /Library/Ruby/Gems/1.8/gems/cancan-1.6.5/lib/cancan/controller_additions.rb:386
from /Library/Ruby/Gems/1.8/gems/cancan-1.6.5/lib/cancan.rb:4
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `require'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `require'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:66:in `each'
$.getJSON('http://feeds.pinboard.in/json/v1/recent?jsoncallback=?', function(data) {
alert('asdf')
});
Guard::RSpec is running, with RSpec 2!
Running all specs
/Users/eric/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.0.9/lib/action_dispatch/http/response.rb:35:in `<module:ActionDispatch>': uninitialized constant Rack::Response (NameError)
from /Users/eric/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.0.9/lib/action_dispatch/http/response.rb:6:in `<top (required)>'
from /Users/eric/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.0.9/lib/action_controller/metal/rack_delegation.rb:2:in `<top (required)>'
from /Users/eric/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.0.9/lib/action_controller/metal/redirecting.rb:14:in `<module:Redirecting>'
from /Users/eric/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.0.9/lib/action_controller/metal/redirecting.rb:10:in `<module:ActionController>'
from /Users/eric/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.0.9/lib/action_controller/metal/redirecting.rb:1:in `<top (required)>'
from /Users/eric/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.0.9/lib/action_controller/base.rb:188:in `<clas
/*
* This is a manifest file that'll automatically include all the stylesheets available in this directory
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
* the top of the compiled file, but it's generally better to create a new file per style scope.
*= require_self
*= require screen
*/
@ericdfields
ericdfields / gist:1717578
Created February 1, 2012 15:38
Bash convert all your SCSS to SASS in one line (because you've seen the light)
for f in *.scss; do sass-convert -F scss -T sass $f ${f%%.*}.sass; done
@ericdfields
ericdfields / _mixins.scss
Created February 2, 2012 18:07
Bootstrap 2.0 Grid Mixins — Less vs. Sass
//
// All sorts of better
//
// Le grid system
// -------------------------
//
// Grid system builder for fixed, responsive and input grids
//
@mixin gridSystem(
Eric-Fieldss-MacBook-Air:sample_app eric$ rails generate integration_test static_pages
invoke rspec
create spec/requests/static_pages_spec.rb
Eric-Fieldss-MacBook-Air:sample_app eric$ subl spec/requests/static_pages_spec.rb
Eric-Fieldss-MacBook-Air:sample_app eric$ subl spec/requests/static_pages_spec.rb -w
Eric-Fieldss-MacBook-Air:sample_app eric$ bundle exec rspec spec/requests/static_pages_spec.rb
/Users/eric/Development/rails_projects/sample_app/spec/requests/static_pages_spec.rb:1:in `require': no such file to load -- spec_helper (LoadError)
from /Users/eric/Development/rails_projects/sample_app/spec/requests/static_pages_spec.rb:1:in `<top (required)>'
from /Users/eric/.rvm/gems/ruby-1.9.2-p290@rails3tutorial2ndEd/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698:in `load'
from /Users/eric/.rvm/gems/ruby-1.9.2-p290@rails3tutorial2ndEd/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698:in `block in load_spec_files'
//
// Produces 4 media queries…
//
.widgetA
+respond-to(normal)
font-size: normal
+respond-to(wide)
font-size: large
MacBook-Air:Development eric$ rails --version
/Users/eric/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find rails (>= 0) amongst [POpen4-0.1.4, Platform-0.4.0, RedCloth-4.2.9, RedCloth-4.2.8, addressable-2.2.7, albino-1.3.3, blankslate-2.1.2.4, bundler-1.1.3, bundler-1.0.22, bundler-1.0.22, chunky_png-1.2.5, chunky_png-1.2.1, classifier-1.3.3, compass-0.12.1, compass-0.12.rc.1, compass-0.11.5, compass-susy-plugin-0.9, daemon_controller-1.0.0, daemons-1.1.8, directory_watcher-1.4.1, directory_watcher-1.4.0, eventmachine-0.12.10, facade-1.0.5, fast-stemmer-1.0.0, fastthread-1.0.7, ffi-1.0.11, ffi-1.0.9, fssm-0.2.8.1, fssm-0.2.7, haml-3.1.4, haml-3.1.2, heroku-2.23.0, heroku-2.21.3, jekyll-0.11.2, jekyll-0.11.0, jekyll-0.6.2, kramdown-0.13.5, kramdown-0.13.4, kramdown-0.13.3, launchy-2.1.0, launchy-2.0.5, liquid-2.3.0, liquid-2.2.2, maruku-0.6.0, mime-types-1.18, mime-types-1.17.2, netrc-0.7.1, nokogiri-1.5.2, open4-1.3.0, passenger-3.0.11, pathname2-1.
<div class="header island">
</div>
<div class="content island">
</div>
<div class="footer island">
</div>