Angular 1.3+ has an alternative getter/setter pattern: You can bind ng-model to an accessor function. This is a function...

github.com

Capybara-screenshot can automatically save screenshots and the HTML for failed Capybara tests in Cucumber, RSpec or Minitest. Requires Capybara...

blog.phusion.nl

Interesting approach to caching responses directly in the HTTP server, based on the value of an individual cookie.

makandra dev
mailru.github.io

A set of javascript tools for working with files. It offers different kinds of things: A cross-browser JS API...

The Angular 1.2 way: # By default, angular returns undefined for invalid attributes which removes # the value from the form field...

askubuntu.com

Adobe no longer supports their PDF reader on Linux and the official page does not offer it for download. \

airpair.com

In the Controller: // Instead of doing this: app.controller('TodoCtrl', function ($scope) { $scope.input = 'ex. buy milk'; }); // Do this: app.controller('TodoCtrl', function...

makandra dev
github.com

Clamps (ie. cuts off) an HTML element's content by adding ellipsis to it if the content inside is too...

When putting phone numbers into web pages, you should use tel: links so smartphone users can click those numbers to...

makandra dev
github.com

An amped-up alternative to Turbolinks that differs in points like this: It's opt-in instead of opt-out...

Rails migrations allow you to use a change method whose calls are automatically inverted for the down path. However, if...

github.com

Using this gem I could get JSON generation from a large, nested Ruby hash down from 200ms to 2ms.

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

makandra dev
blog.idrsolutions.com

If you have issues with PDFs, fix them like this: pdftk .pdf output .pdf Background I had an issue where...

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

vitalets.github.io

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

Modern browsers natively suppport file pickers that allow the user to choose multiple files at once. To activate this feature...

In Thunderbird, you can set custom font faces and sizes for reading plain-text e-mails. However, Thunderbird sometimes "randomly...

If you're using the :header_html option in PDFKit (or the corresponding --header-html option in wkhtmltopdf), and the...

Capybara will fail to find tags that are missing an href attribute. This will probably happen to you every now...

In Rails, you can very easily send emails with HTML and plaintext bodies. However, if you're trying to debug...

makandra dev
github.com

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

blog.mailgun.com

Styling HTML email is painful. Tables, inline CSS, unsupported CSS, desktop clients, web clients, mobile clients, various devices, various providers...

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