The benefit of the Rails asset pipeline is that it compiles your stylesheets and javascripts to a single file, respectively...
In the Controller: // Instead of doing this: app.controller('TodoCtrl', function ($scope) { $scope.input = 'ex. buy milk'; }); // Do this: app.controller('TodoCtrl', function...
The Rails asset pipeline improves delivery of application assets (javascripts, stylesheets, images, fonts). Here are some basic facts about its...
When you run code inside a $watch expression that forces a repaint (e.g. by computing an element's width, or...
Right-click on the frame Select Frame... Open Background Set As to "Color" Set the background color...
Sidekiq::Client.push('class' => 'WorkerClass', 'args' => [11, 5, 1993]) is equivalent to WorkerClass.perform_async(11, 5, 1993)
Clamps (ie. cuts off) an HTML element's content by adding ellipsis to it if the content inside is too...
The Angular ngSrc directive serves to properly set an image src via Angular. As anything in Angular, it updates the...
Starting Terminator with split screens is quite simple: Just store a layout and start Terminator with the --layout option.
A very clever hack to parse a structured URL object is to create a element and set its href to...
BubbleTree is a library for interactive visualization of hierarchical data. Originally developed mainly for spending data, the library is now...
Raphaël is a small JavaScript library that should simplify your work with vector graphics on the web. If you want...
One of the many useful features of TextMate is autocompletion of words. If I were in TextMate right now, I...
An amped-up alternative to Turbolinks that differs in points like this: It's opt-in instead of opt-out...
A perfect implementation of the wrong specification is worthless. By the same principle a beautifully crafted library with no documentation...
Have you ever opened a file with vim, edited it and when you wanted to save your changes it told...
Shortener is a Rails Engine Gem that makes it easy to create and interpret shortened URLs on your own domain...
Settings -> Editor -> General -> Smart Keys -> Unindent -> To nearest indent position RubyMine 7.0: Settings -> Editor -> General -> Smart Keys -> Backspace...
If bower complains about a missing node binary, do not install Ubuntu's node package. Instead, you need to create...
# => KeyError: Key "missing_key" not found in {"id"=>"96814974590_10152840169159591", "created_time"=>"2014-11-18T20:30:41+0000", "story"=>"Audi Deutschland commented on a photo."}
Rails migrations allow you to use a change method whose calls are automatically inverted for the down path. However, if...
Upgrading from Ruby 1.8.7 to 2.1.2 took me an hour for a medium-sized application. It involved hardly any changes...
For our production servers we use Passenger as a Ruby application server. While it is possible to use Passenger for...
Cucumber allows for prose in features and scenarios. Example: Feature: Cancel account There are several ways to cancel a user...