In RSpec you can tag examples or example groups with any tags you like simply by saying describe ReportCreator, slow...
Code folding is a very useful feature to me. It gives me a quick overview over a file and keeps...
To use a form model with devise, you can simply override #resource_class in a controller. A typical use case...
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...