Fontawesome 4 ships with many useful CSS helper classes. Enlarge Icon Add fa-lg (133%), fa-2x, fa-3x, fa...
Fontawesome 4 has introduced new naming conventions that make it easy to retrieve variants of a given icon.
Starting from Rails 4.0, you can use a special form options helper called #collection_check_boxes. It behaves similar to...
When using threads, you must make your code thread-safe. This can be done by either locking (mutexes) all data...
There are some frontends available, but they all suck, are no longer maintained or are hard to install.
Awesome hack by Tim VanFosson:
It's generally not trivial to change a datetime's seconds, minutes, etc in SQL. Here is how it works...
Web applications can be used by multiple users at the same time. A typical application server like Passenger has multiple...
RSpec 3 has verifying doubles. This breed of mock objects check that any methods being stubbed are present on an...
If you need to log to a file you can use Ruby's Logger class: require 'logger'
If you want to rotate text, you can use CSS transforms in somewhat modern browsers to rotate the container element...
What if a complicated component comes along that is naturally modeled by multiple directives? This group of directives, as a...
TL;DR You shouldn't call $scope.$apply() or $scope.$digest() inside a function that can be invoked by Angular...
You can hook into Slack when using Capistrano for deployment. The slackistrano gem does most of the heavy lifting for...
Please don't simply copy line number links from Github. The URL usually contains a branch name like master which...
See this Railscast. Basically you can simply write views like index.xlsx.erb: ID Name Release Date Price <% @products.each do |product| %> <%= product.id...
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;
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...