To bind an HTML value to ng-bind-html, you need to mark it as "trusted" first. Among other ways...

When you need to check a value for presence, don't rely on JavaScript since it considers 0 or "0...

In a JavaScript console, type this: > 9112347935156469760 9112347935156470000 Ooops. And that's not a float! This occurs because JavaScript uses...

Browsers make this very hard. Even when you explicitely set the selection inside the textarea (e. g. using jquery-fieldselection...

The asset pipeline changes the paths of CSS files during precompilation. This opens a world of pain when CSS files...

JavaScript's NaN ("Not a Number") is hard to compare against. It never equals anything, not even itself:

vitalets.github.io

Angular-xeditable is a bundle of AngularJS directives that allows you to create editable elements. Such technique is also known...

docs.angularjs.org

In addition to the {{ myValue }} two-way binding syntax, since Angular 1.3 there's a one-time binding syntax, prefixing...

api.jquery.com

Simply use one(...) instead of on(...). It takes the same arguments.

Since we are using LoDash instead of UnderscoreJS in recent/current projects, you should keep in mind that their syntax is...

github.com

bower-rails is a great solution for managing vendored assets in your Rails app. It feels especially much more convenient...

github.com

JavaScript structures that include circular references can't be serialized with a"plain" JSON.stringify. Example: a = { name: 'Groucho' };

gist.github.com

A nice bookmarklet to analyze how many watchers have been registered on the current page. Good for keeping an eye...

Creating records in specs can be so fast that two records created instantly after one another might have the same...

This may be hard to find in the docs, but if you want CoffeeScript classes that instantiate their properties from...

This is what worked for me in a Rails 4: # JSON data as first argument, then parameters patch :update, { some...

github.com

A collection of useful filters for AngularJS, e.g. for fuzzy string searching, displaying numbers as percentages an more.

ankane.github.io

Create beautiful Javascript charts with one line of Ruby. Promising chart library for easily rendering charts with Google Charts.

Capybara and most assistive technology will fail to find tags that are missing an href attribute. This will probably happen...

Let's say you have two screens: Show a given project Show a report for all projects Ideally you want...

github.com

PDFKit converts a web page to a PDF document. It uses a Webkit engine under the hood...

stackoverflow.com

If you want to move an element inside an array, neither JavaScript/ES6+ nor libraries like LoDash offet that natively.

When using jQueryUI's Sortable plugin (either directly or via Angular's ui.sortable), you might struggle testing your nice drag...

Nearly all jQuery traversal functions ignore elements that are not HTML tags. To work with other type of nodes (like...