A check if two date or time ranges A and B overlap needs to cover a lot of cases:
This card describes a Cucumber step that lets you say: When I perform basic authentication as "username/password" and I visit...
Are you adding a "Then show me the page" and re-run Cucumber whenever there is a failing scenario? Don...
Call geordi clean from a project root to remove unused and unnecessary files inside it. This script is part of...
The following Sass will do the trick: button, input[type="reset"], input[type="button"], input[type="submit"], input[type="file...
Git allows you to do a binary search across commits to hunt down the commit that introduced a bug.
See our new comprehensive guide to upgrading every Rails 2 version ever.
If you need to find out which of your local commits are not on the remote server do this:
The ‘merge.*.driver` variable’s value is used to construct a command to run to merge ancestor’s version, current...
Every time you amend, rebase or reset, git commits get "overwritten". However, git still allows you to checkout those commits...
When you eagerly load an association list using the .include option, and at the same time have a .where on...
If you modified git's history and the change was already pushed, you will usually get a ! [rejected] my-branch...
To change the commit message of the latest (unpushed, unmerged) commit, you can use git commit --amend
Lets say you need to make a change to a commit OLD_COMMIT, but this is not the most recent...
This card explains how to install RubyMine for the first time. If you want to upgrade an existing RubyMine installation...
In order to go back one page in your Cucumber tests, you can use the following step definition for Capybara...
To change a commit message of the most recent (unpushed) commit, you can simply use git commit --amend -m 'new...
Plugins (and gems) are typically tested using a complete sample rails application that lives in the spec folder of the...
This collection of Sass mixins enables cross-browser styling (including IE with CSS3PIE) with less lines of code.
Added utility methods for the Prototype Javascript framework.
Fixes all Flash elements on a page so that they heed DOM stacking order
This will stash all modifications that you did not git add: git stash -k Note that newly created (and non...
For clarity and traceability, your commit messages should include the ID and title of the Pivotal Tracker story you're...
To only run the next two migrations: rake db:migrate STEP=2 To revert the previous two migrations: