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...
The linked article shows what current browsers do when you click a link like this: 1-562-867-5309
Is your application doing something expensive every few seconds? Maybe an animated slider that rotates images? Maybe you are updating...
Here is a symbol of an eight note: ♪ Its two-byte hex representation is 0x266A. This card describes how to...
For some years Google Chrome has allowed you to add desktop icon for any web page by going to Tools...
When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...
Chrome's developer tools automagically choose vertical or horizontal panel layout, based on their width. You can disable that magic...
This service gives you a kind-of standard color name for any hex code. This is useful if you want...
...The and tags both come with some non-default behavior that you know from other tags.
So you want to use object-fit, but you also need to support Internet Explorer. One option is to use...
I had an issue with icons from an icon font aligning differently on Linux, iOS and Windows (seemingly browser-independent...
All new browsers support the new object-fit CSS property. It allows to specify how an element behaves within its...
IE has a "Compatibility Mode" for old browsers. You can keep IE from offering it (and fix some other things...
The way that Javascript schedules timeouts and promise callbacks is more complicated than you think. This can be the reason...
Have you ever mistaken one Rails environment for another? The attached helper will help you to never do it again...
When you are working with jQuery selectors and collections, many times you want to know if the collection actually contains...
to create a Gallery that has a name and has_many :images, which in turn have a...
UI sortable helps reordering items with drag 'n drop. It works quite fine. Proven configuration for sorting table rows
jQuery's find looks in the element's descendants. It will never return the current element itself, even if the...