Angular-xeditable is a bundle of AngularJS directives that allows you to create editable elements. Such technique is also known...
In addition to the {{ myValue }} two-way binding syntax, since Angular 1.3 there's a one-time binding syntax, prefixing...
Simply use one(...) instead of on(...). It takes the same arguments.
Since we are using LoDash instead of UnderscoreJS in recent/current projects, you should keep in mind that their syntax is...
bower-rails is a great solution for managing vendored assets in your Rails app. It feels especially much more convenient...
JavaScript structures that include circular references can't be serialized with a"plain" JSON.stringify. Example: a = { name: 'Groucho' };
A nice bookmarklet to analyze how many watchers have been registered on the current page. Good for keeping an eye...
Returning an empty scope can come in handy, e.g. as a default object. In Rails 4 you can achieve this...
We upgraded a Rails 2 application to Rails 3.2 and Ruby 2.1, changed the mysql adapter from mysql to mysql2...
This is what worked for me in a Rails 4: # JSON data as first argument, then parameters patch :update, { some...
Modern browsers natively suppport file pickers that allow the user to choose multiple files at once. To activate this feature...
A collection of useful filters for AngularJS, e.g. for fuzzy string searching, displaying numbers as percentages an more.
class Document < ActiveRecord::Base scope :any_tags, -> (tags){ where('tags && ARRAY[?]', tags) } scope :all_tags, -> (tags){ where('tags @> ARRAY...
Create beautiful Javascript charts with one line of Ruby. Promising chart library for easily rendering charts with Google Charts.
tl;dr: Use with_index ActiveRecord's find_each with index If you do not provide a block to find...
A different take on what we're doing with ActiveType. Since it lives under the rails organization it might be...
In Thunderbird, you can set custom font faces and sizes for reading plain-text e-mails. However, Thunderbird sometimes "randomly...
You need to copy an entire website? Use wget like this: wget -kr http://host.tld/ This will fetch all content...
To avoid n+1 queries, you want to eager-load associated records if you know you need to access them...
Cookies without an expiration timestamp are called "session cookies". [1] They should only be kept until the end of the...
So you want to organize your I18n using multiple .yml files but your Rails 4.1 application simply won't use...
There are different ways to run rake: On Rails 4.1+ projects, you have Spring and its binstubs which dramatically improve...
Capybara and most assistive technology will fail to find tags that are missing an href attribute. This will probably happen...
When your system is not running on English, you may sometimes want to run some applications and not use your...