While you usually do not need a Content-Type on GET request (which have a blank body), an external API...

Sometimes you want to know exactly how many objects exist within your running Ruby process. Here is how: stats = {} ObjectSpace.each...

makandra dev

Starting with Ruby 1.9, most #each methods can be called without a block, and will return an enumerator. This is...

This is how you regain disk space from OpenStack instances if you are using kvm and qcow. If your instance...

stackoverflow.com

With ngAnimate, you can easily animate certain events (see directive support). We'll make use of ngClass animations to style...

We organize our daily work with issues in our Linear workspace. Issue format A good issue needs to be precise...

To update your Rubygems to the latest available version, type the following: gem update --system Note that you have a...

On Ruby 1.9+, standard ruby character classes like \w, \d will only match 7-Bit ASCII characters: "foo" =~ /\w+/ # matches...

If you are writing any amount of Javascript, you are probably using closures to hide local state, e.g. to have...

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