github.com

An official Github repo by Google containing the binary font files served through Google Fonts, so you can easily download...

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

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

xaprb.com

The linked article explains how to get a database-wide lock without creating table rows: This article explains how I...

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

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

github.com

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

This will list all branches matching your query as input options for git checkout greckout ar 1) ar/cache-api-keys-1098...

makandra dev
github.com

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

makandra dev
github.com

Geordi 1.0 features a command line application geordi, that holds most of Geordi's previous commands. New features

When a gem author releases a new version to Rubygems, usually a tag with the version number (e.g. v1.2.0) is...

github.com

Jonas Nicklas, the author of Carrierwave and Capybara, has released Refile, a gem for handling file uploads in Rails. It...

github.com

Want to find that repo you've starred some time ago again? Here's where to search for it.

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

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

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

capybara_element['attribute_name'] allows accessing an element's attributes in Capybara. A few examples: find('#my_element')['class']

makandra dev

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|