JavaScript objects can have getter and setter functions that are called when a property is read from or written to...
Capybara-screenshot can automatically save screenshots and the HTML for failed Capybara tests in Cucumber, RSpec or Minitest. Requires Capybara...
Rails includes a way to see what an e-mail will look like. Integration to RSpec All you need to...
The API is a little confusing because animate returns a reference to the element to enable chaining.
jQuery comes with .animate() that lets you transition some CSS selectors: function floatIn($element) { $element.css({ 'opacity': 0, 'margin-top': 200px...
You can do so much more than console.log(...)! See the attached link for a great breakdown of what the developer...
Rails guide that covers PostgreSQL-specific column types and usages for Active Record. You should especially keep in mind the...
When you have an ngRepeat directive that uses track by, be sure to move the track by instructions to the...
Interesting approach to caching responses directly in the HTTP server, based on the value of an individual cookie.
Bourbon is a library of pure Sass mixins that are designed to be simple and easy to use. No configuration...
RSpec::Matchers.define :be_naturally_sorted do match do |array| array == array.natural_sort end end See RSpec: Where to put custom...
This step will pass if the specified select is sorted. Then /^the "(.*?)" select should be sorted$/ do |label, negate|
A set of javascript tools for working with files. It offers different kinds of things: A cross-browser JS API...
Chances are you're seeing the warning repeated a lot of times, maybe thousands of times. Here's how to...
If you want a class-like construct in JavaScript, you can use the module pattern below. The module pattern gives...
If you have trouble updating something on FreeBSD you should always take a look in the UPDATING file.
The Angular 1.2 way: # By default, angular returns undefined for invalid attributes which removes # the value from the form field...
SELECT enum_range(NULL::portal) # Returns an array of all possible values SELECT unnest(enum_range(NULL::portal)) # Unnests the...
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...
When you run code inside a $watch expression that forces a repaint (e.g. by computing an element's width, or...
Option 0: Download from the official page (preferred) Open https://googlechromelabs.github.io/chrome-for-testing/ In Section "Stable" > chromedriver / linux64 > Download ZIP from...