help.github.com

Please don't simply copy line number links from Github. The URL usually contains a branch name like master which...

railscasts.com

See this Railscast. Basically you can simply write views like index.xlsx.erb: ID Name Release Date Price <% @products.each do |product| %> <%= product.id...

makandra dev
stackoverflow.com

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

Be careful when using buttons without a type attribute, since browsers will consider them the default submit button of a...

SELECT table_name, table_rows FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'your_database' order by table_rows;

makandra dev
jbt.github.io

An online markdown live previewer with GitHub Flavoured Markdown support. Another online markdown live previewer with GitHub Flavoured Markdown support...

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

This guide shows how to create an AngularJS application that consumes more and more memory until, eventually, the browser process...

When uploading images, adding more than one process to a version can cause MiniMagick to run multiple commands. In order...

When you are using the #selector_for helper in Cucumber steps, as e.g. Spreewald does, the following snippet will save...

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

It's like a GUI for the famous git add [-p]. Select files with the up/down-keys and hit

makandra dev

TL;DR Block formatting contexts establish an isolating container. float and clear only apply to elements within such a container...

The CSS property z-index is not as global as you might think. Actually, it is scoped to a so...

If your angular app is not served on /, but on a different url (say /admin), links generated with ui-router...

github.com

Preview what your markdown would look like on Github. Helpful e.g. when writing or extending a Readme for your gem...

If you're getting this strange error message when setting debugging breakpoints, probably HAML is the culprit. Cause

makandra dev
github.com

SVG files are often much larger than necessary, containing comments, metadata, hidden elements etc. Optimize them with this tool.

markembling.info

Using uncountable resources is not recommended as it breaks Rails' magic, e.g. when using form_for. You'll always be...

Add gem 'database_cleaner' to your Gemfile. Then: Cucumber & Rails 3+ # features/support/database_cleaner.rb DatabaseCleaner.clean_with(:deletion) # clean once, now DatabaseCleaner.strategy = :transaction...

phpied.com

Some insight into how browser rendering engines work. The article shows how the way you manipulate styles (and the DOM...

matchingnotes.com

Sequel is an awesome ORM such as ActiveRecord. The linked article describes how easily you can implement and use materialized...

stackoverflow.com

Just run git show branch:file. Examples: git show HEAD~:bin/command git show origin/master:../lib/version.rb

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