makandra dev
github.com

It's mixins (modules) for Coffeescript classes. Other than most homegrown approaches, this one allows you to keep using super...

makandra dev
github.com

We proudly release our safe_cookies middleware into public beta and just published it on Github. Features are:

developer.rackspace.com

Establishing a new SSH connection usually takes only a few seconds, but if you’re connecting to a server multiple...

makandra dev

For all late night coders: The program "redshift" changes your monitors' white balance according to your position on the planet...

stackoverflow.com

I had some problems with Git and the file spec/fixtures/ČeskýÁČĎÉĚÍŇÓŘŠŤÚŮÝŽáčďéěíňóřšťúůýž. After pulling the latest commits, it would show that...

When you have files in your .gitignore they won't be considered for changes, but still you might want to...

makandracards.com

So you're hunting down a regression (or just a bug) and want to use git bisect to find out...

makandra dev

Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...

This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...

github.com

Backbone plugin to override getters and setters with logic.

makandracards.com

In order to have more human readable git branches, do git pull --rebase To always pull like this, write these...

github.com

Essential backports that enable many of the nice features of Ruby 1.8.7 up to 2.0.0 for earlier versions.

In order to clone a git repository including all branches and tags you need to use two parameters when cloning...

Sometimes you want git to ignore certain files that appear on your machine. You can do this in 3 ways...

makandra dev

git shortlog -s -n [commit-range] -n, --numbered Sort output according to the number of commits per author

When you want to do a git diff but do not care about the full diff and just want to...

Create a directory mkdir ~/.aws Initialise git repository cd ~/.aws && git init Create a git branch with a name you...

You probably haven't configured version control for your project. Go to Project Settings / Version Control and set the director...

robots.thoughtbot.com

Guide how to make fixes in other people's GitHub repositories. It's basically "Open Source Development 101".

Given you use Capistrano together with bundler to automatically install your gems when deploying. I recently had the problem that...

github.com

MongoMapper is a MongoDB adapter for Ruby. We've forked it so it works for Rails 2.3.x applications running...

gist.github.com

Rails 2.3.16+ on Ruby 1.9 causes warnings like this: .../gems/activesupport-2.3.17/lib/active_support/core_ext/string/output_safety.rb:22: warning: regexp match /.../n against to UTF-8 string...

If you need to capture signatures on an IPad or similar device, you can use Thomas J Bradley's excellent...