Skip to content

Instantly share code, notes, and snippets.

View racheldonovan's full-sized avatar

Rachel Donovan racheldonovan

  • Articulate
  • Somerville, MA
View GitHub Profile
@racheldonovan
racheldonovan / wysihtml5_helper.rb
Created April 18, 2013 21:55
a helper to assit in integration testing (rspec / capybara) wysihtml5 text editors.
module Wysihtml5Helper
def fill_in_wysihtml5(text)
#js must be enabled
page.execute_script("editor.setValue('#{text}')")
end
end
@racheldonovan
racheldonovan / transitioning_to_twitter_bootstrap.md
Created May 7, 2012 14:54
an approach on iteratively switching css frameworks while doing a major refactor

An approach on iteratively switching css frameworks while doing a major refactor

Where I was coming from:

  • Using a Rails app
  • Had lots of custom css written on top of Blueprint / Compass
  • Wanted to switch to use Twitter Bootstrap with Compass
  • Wanted to take small steps

Prepare to run two sets of CSS

@racheldonovan
racheldonovan / twitter_bootstrap_addons.scss
Created December 13, 2011 04:00
Twitter Bootstrap Addons
/* Default styles I wish were included in Twitter Bootstrap */
/* allow for easy vertical alignment of elements */
.media_block {
display: table;
overflow: hidden;
.cell {
display:table-cell;
vertical-align:middle;
}