Skip to content

Instantly share code, notes, and snippets.

View christopherstyles's full-sized avatar

Chris Styles christopherstyles

View GitHub Profile
$.fn.vAlign = ->
@each (i) ->
ah = $(this).height()
ph = $(this).parent().height()
mh = (ph - ah) / 2
$(this).css "margin-top", mh
@christopherstyles
christopherstyles / deploy-fail
Created October 14, 2012 06:20
logfile from failed staging deployment
git update-ref refs/heroku_san/deploy HEAD
git push git@heroku.com:tedcity2-staging.git --force refs/heroku_san/deploy:refs/heads/master
Counting objects: 84, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (60/60), done.
Writing objects: 100% (60/60), 7.02 KiB, done.
Total 60 (delta 44), reused 0 (delta 0)
-----> Heroku receiving push
-----> Ruby/Rails app detected
@christopherstyles
christopherstyles / guard 'spork'
Created June 27, 2012 01:58
a sample guard watcher configuration for spork, in rails
guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do
watch('config/application.rb')
watch('config/environment.rb')
watch(%r{^config/environments/.+\.rb$})
watch(%r{^config/initializers/.+\.rb$})
watch('Gemfile')
watch('Gemfile.lock')
watch('spec/spec_helper.rb') { :rspec }
watch('test/test_helper.rb') { :test_unit }
watch(%r{features/support/}) { :cucumber }