The debate between using mixins or extends in Sass has been heating up recently. From the surface it appears they...
jQuery doesn't store information about event listeners and data values with the element itself. This information is instead stored...
The CSS property z-index is not as global as you might think. Actually, it is scoped to a so...
Use it like this for inline icons: Germany They also work as block elements:
Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...
This jasmine plugin helps with testing DOM manipulation in two ways: It gives you DOM-related matchers like toBeVisible() or...
Angular 1.3+ has an alternative getter/setter pattern: You can bind ng-model to an accessor function. This is a function...
This is a problem when using Selenium with Firefox. We recommend using ChromeDriver for your Selenium tests. This setup allows...
Capybara-screenshot can automatically save screenshots and the HTML for failed Capybara tests in Cucumber, RSpec or Minitest. Requires Capybara...
jQuery comes with .animate() that lets you transition some CSS selectors: function floatIn($element) { $element.css({ 'opacity': 0, 'margin-top': 200px...
Bourbon is a library of pure Sass mixins that are designed to be simple and easy to use. No configuration...
A set of javascript tools for working with files. It offers different kinds of things: A cross-browser JS API...
Lightweight Angular JS directive to upload files Includes polyfills for old IEs. Unfortunately, their auto-loading mechanism may not work...
When using git diff, you might encounter weird characters where umlauts (or any other UTF-8) characters should be. It...
A lot of the advice involves less separations of concerns in your code ("don't use $watch", "don't use...
The benefit of the Rails asset pipeline is that it compiles your stylesheets and javascripts to a single file, respectively...
In the Controller: // Instead of doing this: app.controller('TodoCtrl', function ($scope) { $scope.input = 'ex. buy milk'; }); // Do this: app.controller('TodoCtrl', function...
The Rails asset pipeline improves delivery of application assets (javascripts, stylesheets, images, fonts). Here are some basic facts about its...
Clamps (ie. cuts off) an HTML element's content by adding ellipsis to it if the content inside is too...
Rails migrations allow you to use a change method whose calls are automatically inverted for the down path. However, if...
MetricsGraphics.js is a library built on top of D3 that is optimized for visualizing and laying out time-series data...
Using this gem I could get JSON generation from a large, nested Ruby hash down from 200ms to 2ms.
Javascript library for drag'n'drop that seems to have more options than native HTML5 drag'n'drop.
To bind an HTML value to ng-bind-html, you need to mark it as "trusted" first. Among other ways...