to create a Gallery that has a name and has_many :images, which in turn have a...

jqueryui.com

UI sortable helps reordering items with drag 'n drop. It works quite fine. Proven configuration for sorting table rows

The attached ImageLoader helper will start fetching an image and return an image that is resolved once the image is...

makandra dev
browsercookielimits.squawky.net

TL;DR If you want to support most browsers, then don't exceed 50 cookies per domain, and don't...

Spreewald gives you the within meta step that will constrain page inspection to a given scope. Unfortunately, this does not...

developer.mozilla.org

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

Instead of using this hack you might want to use MariaDB 10.x which can work with both old and...

ombulabs.com

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

makandra dev
github.com

Git commands tend to come in groups. Avoid typing git over and over and over by running them in a...

jQuery's deferred objects behave somewhat like standard promises, but not really. One of many subtle differences is that there...

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

While IE9 does support HTML5 tags, it fails to work until you force HTML5 mode. Here are two ways to...

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.

If you want to inspect the compiled code of your erb (or haml) templates, you can run the following code...

If you are on a Linux shell and want to open a file with whatever default application is configured for...

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

TL;DR There are three dimensions you can control when scoping routes: scope module: 'module', path: 'url_prefix', as: 'path...

getpostman.com

Talking with APIs makes more fun using Postman. As an alternative you can also use command line tools like cURL...

Our preferred way of testing ActiveRecord is to simply create/update/destroy the record and then check if the expected behavior has...

makandra dev

Angular's directives have a transclude option, that allows for rendering an element's original content within the directive's...

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