fake_stripe spins up a local server that acts like Stripe’s and also serves a fake version of Stripe.js...
When building a form with a file select field, you may want to offer your users a live preview before...
Tool to show you which gems are slow to load: ➜ git:(master) ✗ bundle exec bumbler [################################################# ] (49/65) travis-lint...
You can use JavaScript to get or set cookie values on the client. Using the vanilla JavaScript API
jQuery's deferred objects behave somewhat like standard promises, but not really. One of many subtle differences is that there...
This card existed before, but was outdated due to browser implementation changes. The information below is validated for the current...
While IE9 does support HTML5 tags, it fails to work until you force HTML5 mode. Here are two ways to...
Angular's location provider stalls links to the current URL, i.e. window.location. As soon as the $location service is activated...
If you are on a Linux shell and want to open a file with whatever default application is configured for...
Let's say you want to find the element with the text hello in the following DOM tree: hello
Imagine you have a list you want to render inline on large screens, but stacked on small screens. high
Validations should be covered by a model's spec. This card shows how to test an individual validation. This is...
Angular's directives have a transclude option, that allows for rendering an element's original content within the directive's...
A HTTP 302 Found redirect to PATCH and DELETE requests will be followed with PATCH or DELETE. Redirect responses to...
There are a million ways to center s or text in CSS, horizontally or vertically. All the ways are unsatisfying...
Note The maintenance mode is enabled on all application server as soon as the file /public/system/maintenance.html is present. Installation
Once Rails knows a given string is html_safe, it will never escape it. However, there may be times when...
You know that layouting HTML e-mails is terrible. For more fun, check Litmus' list of top 10 e-mail...
A list of surprisingly clever CSS expressions for common use cases.
There are cases when you need to select DOM elements without jQuery, such as: when jQuery is not available
Until recently, you could open a new tab via window.open when using execute_script in Selenium tests. It no longer...
CSS4 comes with :has. E.g. h1:has(b) would select all tags that contain a tag. This is implemented in...
Spreewald 1.4.0 comes with this step: When I click on the element ".sidebar" We recommend to define a selector_for...
Spreewald 1.3.0 comes with these steps: Then I should see an element ".panel" Then I should not see an element...