Converting string characters to or from their integer value (7-bit ASCII value or UTF-8 codepoint) can be done...
to create a Gallery that has a name and has_many :images, which in turn have a...
Sometimes you want to preload images that you will be using later. E.g. if hovering over a an area changes...
TL;DR If you want to support most browsers, then don't exceed 50 cookies per domain, and don't...
Spreewald gives you the within meta step that will constrain page inspection to a given scope. Unfortunately, this does not...
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.