Ever wanted to preview a pattern from Subtle Patterns on your site without the hassle of swapping out images and...
gleeBox is an experimental project that takes a keyboard-centric approach to navigating the web. It provides alternatives to actions...
You can use scheme-less URLs (or protocol-relative URLs) to have browsers use the current protocol (HTTP or HTTPS...
Having your site run on SSL is worthless when you include content over an unsafe connection (HTTP).
Under certain (unknown) circumstances, Rails will give localized files an invalid content-type in the Response header. For me, after...
Generally, Selenium tests use the browser to interact with the page. If it's unavailable, a timeout error is...
If you're using the Capybara webdriver, steps sometimes fail because the browser hasn't finished loading the next page...
Shows how to implement an animated progress bar in pure CSS, without animated GIFs, Javascript or Flash.
Huge set of 315 free vector icons. You can choose which one you'd like, add your own SVGs, then...
Our most recent pattern is EMAIL = /\A[a-z0-9\+\-_\.]+@[a-z\d\-.]+\.[a-z]+\z/i Notes
Browser rendering engines are very slow at rendering large box shadows. I had a situation where a complex layout with...
url = 'http://www.foocorp.com/foo/bar' URI.parse(url).host # => www.foocorp.com Note that this will raise an error if the given argument is...
While git branch will show you all branches and highlight the current one with an asterisk, it can be too...
Haml 3.1.2 displays single quotes in FormBuilder#text_ field html escaped. You may see something like that:
In theory you can take any scope and extend it with additional joins or conditions. We call this chaining scopes...
ActiveModel::Errors is used to handle validation errors on Rails objects. If you inspect an instance, it feels like a...
Around will not happen until after a feature's Background has been processed. Use Before and After to avoid that...
If you require your Rails models manually, pay attention to the path you use. Unless you have...
Show failing specs instantly. Show passing spec as green dots as usual. Configuration: # spec/spec.opts (.rspec for rspec 2) --require rspec/instafail...
Why is this useful? You can have a background image on the same element, overlaying it with a transparent gradient...
...border | With box-shadow | | border: 1px solid red | box-shadow: inset 0 0 0 -1px red | | border-top: 1px solid red | box-shadow: inset 0 1px 0 0 red...
...border-right: 1px solid red | box-shadow: inset -1px 0 0 red | | border-bottom: 1px solid red | box-shadow: inset 0 -1px 0 0 red | | border-left: 1px...
If your application has forms to edit string fields, you probably want to strip the entered values (remove whitespace from...
The (admittedly crazy) goal of this Gem is to be able to format/split all phone numbers in the world.
“Fat models” cause maintenance issues in large apps. Only incrementally better than cluttering controllers with domain logic, they usually represent...