Developing complex regular expressions quickly blows my mind. Here are some online regex editors that help you by highlighting matching...
Note: Making a reverse proxy with nginx is much more straightforward. A reverse proxy is a "man in the middle...
When you register a delegated event using on (or the deprecated delegate / live), it is somewhat hard to manually trigger...
All major browsers (IE8+, FF3.5+, Safari 4+, any Chrome) support sessionStorage, a JavaScript storage object that survives page reloads and...
Small (1.5 KB) Javascript library that lets you render tables, lists, etc. with hundreds of thousands of items.
When ending a Selenium test Capybara resets the browser state by closing the tab, clearing cookies, localStorage, etc.
You know that ActiveRecord caches associations so they are not loaded twice for the same object. You also know that...
RSpec 3 has verifying doubles. This breed of mock objects check that any methods being stubbed are present on an...
If you are using Coffeescript, it is likely to be the culprit. Since Coffeescript always returns the value of...
What if a complicated component comes along that is naturally modeled by multiple directives? This group of directives, as a...
Check your GPU state on chrome://gpu. If it reads "WebGL: Hardware accelerated" in the first list, you're set...
Write a // and indent every subsequent line by two spaces. This is great for documenting BEM blocks! // An action button...
Webfonts are not always available when your JavaScript runs on first page load. Since fonts may affect element sizes, you...
When a CSS3 animation makes the animated element flicker, it may well be due to pixel fragments being handled differently...
jQuery doesn't store information about event listeners and data values with the element itself. This information is instead stored...
This guide shows how to create an AngularJS application that consumes more and more memory until, eventually, the browser process...
The easiest way to detect touch-capable browsers is to check for the presence of touch events. It is no...
The Javascript in operator does what Hash#has_key? does in Ruby: Return whether an object has a property.
Using uncountable resources is not recommended as it breaks Rails' magic, e.g. when using form_for. You'll always be...
Some insight into how browser rendering engines work. The article shows how the way you manipulate styles (and the DOM...
Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...
When testing code that uses pushState / replaceState, your browser will appear to navigate away from http://localhost:3000/specs (or wherever...
This jasmine plugin helps with testing DOM manipulation in two ways: It gives you DOM-related matchers like toBeVisible() or...
When running Selenium features with parallel_tests, some browser-server interaction might take longer than usual and the impatient Capybara...