api.jquery.com

jQuery's removeClass removes the given class string from an element collection. If you want to remove multiple/unknown classes matching...

developers.google.com

Mobile Chrome and Safari support the "web share API" which allow you to use the native share functionality of an...

Bundler::GemRequireError: There was an error while trying to load the gem 'mysql2'. Gem Load Error is: Incorrect MySQL client...

makandra dev

An end-to-end test (E2E test) is a script that remote-controls a web browser with tools like Selenium...

Slides for Henning's talk on Sep 21st 2017. Understanding sync vs. async control flow Talking to synchronous (or "blocking...

reactarmory.com

The linked article shows how to exploit websites that include unsanitized user input in their CSS. Although the article often...

You should prefer native promises to jQuery's Deferreds. Native promises are much faster than their jQuery equivalent. Native promises...

Native promises have no methods to inspect their state. You can use the promiseState function below to check whether a...

Try updating to 1.0.4 right in the Gemfile.lock.

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

When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...

jqueryui.com

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

github.com

Adds missing native PostgreSQL data types to ActiveRecord and convenient querying extensions for ActiveRecord and Arel for Rails 4.x...

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

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

makandra dev
addyosmani.com

MutationObserver provides developers a way to react to changes in a DOM. Any: insertion, deletion, attribute change – anything. Quickstart: https://...

makandra dev
github.com

Note This card does not reflect the current state of lazy loading technologies. The native lazy attribute could be used...

bugs.ruby-lang.org

This is basically Ruby-native syntax for andand.

If you have problems installing a gem and get a error collect2: error: ld returned 1 exit status it's...

You can make both mobile Chrome and mobile Safari display a native app install banner. The banner suggests that the...

When you register a delegated event using on (or the deprecated delegate / live), it is somewhat hard to manually trigger...

jQuery doesn't store information about event listeners and data values with the element itself. This information is instead stored...

github.com

Preview what your markdown would look like on Github. Helpful e.g. when writing or extending a Readme for your gem...

makandra dev
draggabilly.desandro.com

Javascript library for drag'n'drop that seems to have more options than native HTML5 drag'n'drop.