You can use the CSS property mask-image to define an "alpha channel" for an element. E.g. to let an...

This is a personal post-mortem analysis of a project that was mainly build to provide a REST API to...

medium.com

Root Insurance runs their application as a monolithic Rails application – but they've modularized it inside its repository. Here is...

To test that an object was constructed by a given constructor function, use jasmine.any(Klass): describe('plus()', function() { it ('returns...

Browsers come with a set of built-in elements like or . When we need a new component not covered by...

matthewphillips.info

A while ago I tweeted a thread about how a small JavaScript snippet, one that can fit in a single...

This is a bookmarklet you can add to Chrome or Firefox which will allow you to create a story in...

jQuery is still a useful and pragmatic library, but chances are increasingly that you’re not dependent on using it...

Capybara provides execute_script and evaluate_script to execute JavaScript code in a Selenium-controlled browser. This however is not...

makandra dev

There is a practical short list for valid/invalid example email addresses - Thanks to Florian L.! The definition for valid emails...

coffeescript.org contains only documentation for the latest CoffeeScript version. Version 2 transpiles to ES6. We stopped using CoffeeScript a while...

This collection contains some useful design resources for developers. Many of them were mentioned in the Refactoring UI tutorials.

web.archive.org

Use the compile function to change the original DOM (template element) before AngularJS creates an instance of it and before...

The main benefit of our convention to prefix commits by their corresponding Pivotal Tracker ID is that we can easily...

makandra dev

CSS transitions are a simple animation framework that is built right into browsers. No need for Javascript here. They're...

You can share a state in Ruby with global variables. Even if you should avoid them whenever possible, for debugging...

Capistrano automatically logs each (successful) deployment into a file on your application servers. It is located at the root of...

makandra dev

General hints on the DOM the root of the DOM is document custom elements inherit from HTMLElement. They need a...

When an AJAX request raises an exception on the server, Rails will show a minimal error page with only basic...

Sometimes, due to git or other "accidents", important files get deleted or overwritten. At a state when even Ctrl+Z...

makandra dev

webpack is a very powerful asset bundler written in node.js to bundle (ES6) JavaScript modules, stylesheets, images, and other assets...

RubyMine comes with a nice way to grep through your project's files: The finder (ctrl + shift + f). Don't...

Jasmine has long standing support for writing asynchronous specs. In days gone by we used the done callback to achieve...

The goal is to get Jasmine specs running in a Rails project using Webpacker, with the browser based test runner...