Stepping forward from JavaScript Basics, the goal of this card is for you to be able to read and write...
A common task in web applications is to add client-side JavaScript behavior to existing HTML elements.
Jasmine comes with two matchers that test for equality. The first is toBe: expect(first).toBe(second) toBe passes when...
The easiest way to freeze or travel through time in a Jasmine spec is to use the built-in jasmine.clock...
If you are writing any amount of Javascript, you are probably using closures to hide local state, e.g. to have...
tl;dr: Use event.currentTarget unless you are absolutely certain that you need event.target. Since it hasn't been written down...
Get an idea of the varying support for HTML/CSS/JavaScript features in different browsers like Chrome, Firefox, Internet Explorer, Edge...
CSS (+ some Javascript) framework, implementing Google's material design for static web pages. Can be used for plain websites without...
Read the following chapters from The Pragmatic Programmer, anniversary edition (in our library): Chapter 1, Topic 3: Software Entropy...
JavaScript is a scripting language supported by all browsers. Browsers don't speak Ruby, so if we want to implement...
Disabling auto-complete in login forms is probably a bad idea, since it encourages weak passwords. If you are still...
SmartUnderline is an open-source JavaScript library which uses clever tricks to draw underlines in a more beautiful and readable...
Insanely detailled guide about controlling copy & paste behavior using web technology in 2015. Note that you can now trigger a...
If you're supporting IE9+, you can listen to input to see if a text field changes. Other than change...
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...