In the tradition of our PostgreSQL cheat sheet for MySQL lamers, here is a cheat sheet for Jasmine when you...

Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...

When running Selenium features with parallel_tests, some browser-server interaction might take longer than usual and the impatient Capybara...

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...

github.com

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...

makandra dev
databound.me

Databound provides Javascript a simple API to the Ruby on Rails CRUD. Tries to expose a full model CRUD as...

docs.angularjs.org

When you have an ngRepeat directive that uses track by, be sure to move the track by instructions to the...

makandra dev
github.com

Bourbon is a library of pure Sass mixins that are designed to be simple and easy to use. No configuration...

github.com

Lightweight Angular JS directive to upload files Includes polyfills for old IEs. Unfortunately, their auto-loading mechanism may not work...

Today in computer: In Coffeescript, on and yes are aliases for true. off and no are aliases for false.

If you want a class-like construct in JavaScript, you can use the module pattern below. The module pattern gives...

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

Copy data from LibreOffice Calc When you copy data from multi-line cells in LibreOffice Calc, quotation marks are automatically...

When using git diff, you might encounter weird characters where umlauts (or any other UTF-8) characters should be. It...

phusion.github.io

Traveling Ruby is a project which supplies self-contained, "portable" Ruby binaries: Ruby binaries that can run on any Linux...

airpair.com

A lot of the advice involves less separations of concerns in your code ("don't use $watch", "don't use...

When using _.extend/_.assign or _.merge, you will modify the destination object. object1 = { foo: 23, bar: 42 } object2 = { bar: 99 }

askubuntu.com

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

The benefit of the Rails asset pipeline is that it compiles your stylesheets and javascripts to a single file, respectively...

makandra dev

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...