developer.mozilla.org

When building a form with a file select field, you may want to offer your users a live preview before...

ombulabs.com

Tool to show you which gems are slow to load: ➜ git:(master) ✗ bundle exec bumbler [################################################# ] (49/65) travis-lint...

Awesome is a very good tiling window manager that provides neat features like automatic layouting of windows, good multi-display...

You can use JavaScript to get or set cookie values on the client. Using the vanilla JavaScript API

kyusuf.com

Flexbox is great, but you don't get reliable support in Internet Explorer. The attached article shows how to accomplish...

This card existed before, but was outdated due to browser implementation changes. The information below is validated for the current...

Current webkit browsers like Chrome and Safari have a special variable in their consoles that refers to the selected DOM...

The attached Coffeescript helper will let you create mouse events: $element = $('div') Trigger.mouseover($element) Trigger.mouseenter($element) Trigger.mousedown($element) Trigger.mouseup($element...

explainshell.com

Enter any command into explainshell and it will explain it to you: split into separate commands (if present), with each...

To upload a file via AJAX (e.g. from an ) you need to wrap your params in a FormData object.

Angular's location provider stalls links to the current URL, i.e. window.location. As soon as the $location service is activated...

RSpec provides a nice diff when certain matchers fail. Here is an example where this diff is helpful while comparing...

mathiasbynens.github.io

This will give the target site full access to your Javascript environment through window.opener, if the target is on the...

reddit.com

Chrome has discontinued support for 32-Bit Linux builds and this might break your apt-get update.

Let's say you want to find the element with the text hello in the following DOM tree: hello

Imagine you have a list you want to render inline on large screens, but stacked on small screens. high

A HTTP 302 Found redirect to PATCH and DELETE requests will be followed with PATCH or DELETE. Redirect responses to...

There are a million ways to center s or text in CSS, horizontally or vertically. All the ways are unsatisfying...

During debugging you might pepper your code with lines like these: console.log('foo = ' + foo + ', bar = ' + bar) I recommend to use...

stackoverflow.com

From Rails 3.0.9, there is a method Hash#to_query that will turn a Hash into a query string:

github.com

Note Maintenance mode is enabled on application server as soon as the file /public/system/maintenance.html is present. Note that the servers...

litmus.com

You know that layouting HTML e-mails is terrible. For more fun, check Litmus' list of top 10 e-mail...

github.com

A list of surprisingly clever CSS expressions for common use cases.

There are cases when you need to select DOM elements without jQuery, such as: when jQuery is not available