makandra Curriculum

Learn Enough Command Line to be Dangerous (it's in our library => Google Drive) CLI tricks every developer should...

Rails is our web framework. Goals Be able to write a simple Rails application. Understand how Rails talks to the...

makandra Curriculum

Ruby is the programming language we use on the backend. Goals After finishing this lesson you should be able to...

When you register a delegated event using on (or the deprecated delegate / live), it is somewhat hard to manually trigger...

If you want to grow a Ruby Array, you might find out about #fill but it is not really what...

When ending a Selenium test Capybara resets the browser state by closing the tab, clearing cookies, localStorage, etc.

w3.org

Often times you want to give a bunch of elements the same style, except for the last. For example borders...

Write a // and indent every subsequent line by two spaces. This is great for documenting BEM blocks! // An action button...

makandra dev
stackoverflow.com

When a CSS3 animation makes the animated element flicker, it may well be due to pixel fragments being handled differently...

jQuery doesn't store information about event listeners and data values with the element itself. This information is instead stored...

Enumerable#count can do three things. With no argument provided, it returns the number of items. With an argument, it...

I got the following error after updating the selenium-webdriver gem: wrong number of arguments (0 for 1) (ArgumentError) /home/pointoo-dev/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.35.1/lib/selenium/webdriver/common/platform.rb...

tldr; Use git diff -M or git diff --find-renames when you've moved a few files around. Usage

JavaScript objects can have getter and setter functions that are called when a property is read from or written to...

jQuery comes with .animate() that lets you transition some CSS selectors: function floatIn($element) { $element.css({ 'opacity': 0, 'margin-top': 200px...

developer.mozilla.org

You can do so much more than console.log(...)! See the attached link for a great breakdown of what the developer...

This step will pass if the specified select is sorted. Then /^the "(.*?)" select should be sorted$/ do |label, negate|

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

It might happen that your Sidekiq queue gets stuck, hanging at 0% CPU load. When we inspected the process using...

askubuntu.com

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

Option 0: Download from the official page (preferred) Open https://googlechromelabs.github.io/chrome-for-testing/ In Section "Stable" > chromedriver / linux64 > Download ZIP from...

The Angular ngSrc directive serves to properly set an image src via Angular. As anything in Angular, it updates the...

tutorialzine.com

A very clever hack to parse a structured URL object is to create a element and set its href to...

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