makandra dev
stackoverflow.com

So you erased a whole day's work? There is hope! The linked article tells how to recover from an...

In Cucumber, scenario outlines help avoiding tests that are basically the same, except for a few variables (such as different...

So you have placed a breakpoint somewhere and now want to dig around, but not even inspecting variables is working...

makandra dev
github.com

Parses URLs of social networks to extract IDs or screen names. It does not get confused by child routes: you...

stackoverflow.com

Previously the assets group existed to avoid unintended compilation-on-demand in production. As Rails 4 doesn't behave like...

While RSpec 1 and 2 decided that specs inside spec/model are model specs, and those inside spec/features are feature specs...

Run this command to list the authors of the most recent commit of each branch: git for-each-ref --format...

When you don't only have a favicon.ico in your project but also PNGs of different sizes and backgrounds, you...

makandra dev

Spreewald 1.1.0 drops the be_true and be_false matchers in order to be RSpec 3 and Ruby 2 compatible...

When making cross-domain AJAX requests with jQuery (using CORS or xdomain or similar), you will run into issues with...

Code snippet tested with Rails 2.3 def index # ... if request.xhr? html = render_to_string(:partial => "list", :layout => false) respond_to...

teohm.com

The attached post shows some alternative ways to define Strings in Ruby using the percent notation. This can be useful...

makandra dev

Spreewald now has a spreewald binary that lists all available steps, optionally filtering them. Example: $> spreewald # All Spreewald steps

makandra dev
github.com

The debugger gem does not seem to be properly working on Ruby 2. Use byebug instead! Byebug is a simple...

Be careful to name any file @imported by SASS with a leading underscore. SASS files not beginning with an underscore...

makandra dev
gist.github.com

The attached RSpec matcher allows for comfortably testing delegation. Examples describe Post do it { should delegate(:name).to(:author).with...

material.angularjs.org

The material design project for Angular is a complementary effort to the Polymer project's paper elements collection. Our goal...

polymer-project.org

The Paper elements are a set of UI elements that implement the material design system.

The adjust-hue function of Sass allows you to change a color's hue, but only relative to its current...

skype.com

Skype has been updated to 4.3 on Linux. This fixes group chat issues with non-linux clients.

makandra dev
linux.die.net

When connecting to multiple (i.e. > 4) servers to dive into logfiles or do security updates, terminator is what you want...

rails-assets.org

Automatically builds gems from Bower packages (currently 1700 gems available). Packaged Javascript files are then automatically available in your asset...

makandra dev
plugins.jquery.com

SudoSlider is a simple yet powerful content slider that makes no (or very few) assumptions about your markup and is...

If your requests blow up in Ruby or CURL, the server you're connecting to might only support requests with...