Middleman is a static page generator that brings many of the goodies that Rails developers are used to.

Sass lets you easily specify multiple selectors at once like this: .some-block &.has-hover, &:hover outline: 1px solid red...

makandra dev
javascript.info

To move elements around we should be familiar with coordinates. Most JavaScript methods deal with one of two coordinate systems...

medium.com

As web developers, we know how easy it is to end up with web page bloat. But loading a webpage...

stackoverflow.com

window.getSelection().toString(); Browser support: IE9+, Android 4.3+, Safari 5+

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

medium.freecodecamp.com

Collection of useful tools in the Chrome JavaScript console. Make the whole page editable This is not special to Chrome...

TLDR: A function is hard to use when it sometimes returns a promise and sometimes throws an exception. When writing...

Chrome gives you the currently selected element in the inspector with $0. If you select a button in the DOM...

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

TL;DR Debugging problems with javascript errors in cucumber tests is sometimes easier in the browser. Run the test, stop...

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

github.com

This might be relevant for us since we're often managing customer documents in our apps. I played around with...

We often use VCR to stub external APIs. Unfortunately VCR can have problems matching requests to recorded cassettes, and these...

Same requests are recorded only once in vcr. Replaying a test fails, if you trigger the same request multiple times...

There is no build in functionally in jQuery and Prototype to extract params from a url. You can use this...

weareoutman.github.io

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

makandra dev

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

To simulate Rails' to_sentence in your JavaScript application, you can use these few lines of CoffeeScript code: joinSentence = (array...

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

Here is a symbol of an eight note: ♪ Its two-byte hex representation is 0x266A. This card describes how to...

The default Google Analytics might not work as expected with your Unpoly app. This is because your app only has...