Jasmine comes with two matchers that test for equality. The first is toBe: expect(first).toBe(second) toBe passes when...

jasmine.github.io

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...

makandra dev
getmdl.io

CSS (+ some Javascript) framework, implementing Google's material design for static web pages. Can be used for plain websites without...

JavaScript is a scripting language supported by all browsers. Browsers don't speak Ruby, so if we want to implement...

makandra Curriculum

Understand at least the following CSS concepts: Classes Selecting elements for styling Basic styling (color, typography, spacing)

Disabling auto-complete in login forms is probably a bad idea, since it encourages weak passwords. If you are still...

makandra dev
eager.io

SmartUnderline is an open-source JavaScript library which uses clever tricks to draw underlines in a more beautiful and readable...

css-tricks.com

Insanely detailled guide about controlling copy & paste behavior using web technology in 2015. Note that you can now trigger a...

Developing complex regular expressions quickly blows my mind. Here are some online regex editors that help you by highlighting matching...

When you register a delegated event using on (or the deprecated delegate / live), it is somewhat hard to manually trigger...

caniuse.com

All major browsers (IE8+, FF3.5+, Safari 4+, any Chrome) support sessionStorage, a JavaScript storage object that survives page reloads and...

bevacqua.github.io

Datetime picker that offers: simple UI without a specific framework several of customization options allows custom date/time validations Localization happens...

makandra dev
nexts.github.io

Small (1.5 KB) Javascript library that lets you render tables, lists, etc. with hundreds of thousands of items.

github.com

jquery-placeholder is a simple jQuery plugin that enables form placeholders in browsers that do not support them natively, i.e...

Rails comes with a Rake task notes that shows code comments that start with "TODO", "FIXME", or "OPTIMIZE".

When ending a Selenium test Capybara resets the browser state by closing the tab, clearing cookies, localStorage, etc.

docs.angularjs.org

If you are using Coffeescript, it is likely to be the culprit. Since Coffeescript always returns the value of...

help.github.com

Please don't simply copy line number links from Github. The URL usually contains a branch name like master which...

patrickmarabeas.github.io

Webfonts are not always available when your JavaScript runs on first page load. Since fonts may affect element sizes, you...

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...