developer.mozilla.org

You can easily have a JavaScript hash/object that returns a default value for unset keys/properties -- as long as you need...

There seems to be a nasty bug in Chrome 56 when testing with Selenium and Capybara: Slashes are not written...

If the application under test makes sound, you probably want to disable this during integration testing. You can use the...

TLDR: When you put CSS rules into a partial and import that partial multiple times, the CSS rules will be...

smashingmagazine.com

A comprehensive introduction to sending HTML emails. Intro: HTML email: Two words that, when combined, brings tears to a developer...

In general, you should not put a block element inside an inline element. So don't do this: text

Plot graphs in Ruby WebGraphviz renders in your browser via JavaScript (to store the rendered graph, extract the SVG using...

medium.freecodecamp.com

The linked article states that CSS breakpoints should group "similar" screen sizes and thus be at: 600px "narrow"

When giving a presentation with a projector it is sometimes better to use a dual screen layout instead of a...

There is no CSS selector for matching elements that contains a given string ¹. Luckily, Capybara offers the :text option to...

clipboardjs.com

We used zeroclipboard.js in some of our projects but now we switched to clipboard.js because it does not rely on...

SVG is an acronym for "scalable vector graphics". SVGs should be used whenever an image can be described with vector...

icomoon.io

Icomoon.io offers a free app to build custom icon webfonts. It offers downloads as webfont set (.eot, .ttf, .woff, .woff2...

Say you have an RGBA color that you need as a non-transparent color because of reasons. Basically, this is...

weareoutman.github.io

ClockPicker is a JavaScript and Bootstrap implementation of an Android-style time picker which looks and feels great. Unfortunately, it...

Things to check first Do you deliver fonts in a format that the target IE version understands? Did you double...

Promises are the new way™ to express "Do this, and once you're done, do that". In contrast to callbacks...

On OSX (real or inside Browserstack), you need different keystrokes for your favorite special characters than you'd use on...

If you need to modify (e.g. add 2px) a Sass variable that defines multiple values as one (e.g. for short...

There is no built in possibility to convert a float to an integer. You have to use an inline_template...

This pretty-prints a JSON object, with two spaces of indentation: JSON.stringify(object, null, 2)

When you're nesting setTimeout(f, 0) calls, your browser will silently increase the delay to 5 milliseconds after the...

We're using Middleman for some static sites like our blog. Despite being very similar to Rails, Middleman does not...

When your controller action raises an unhandled exception, Rails will look at the exception's class and choose an appropriate...