github.com

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...

makandra dev
ankane.github.io

Create beautiful Javascript charts with one line of Ruby. Promising chart library for easily rendering charts with Google Charts.

Have you tried the Search everywhere dialog? You can open it by pressing Shift twice.

makandra dev
github.com

A different take on what we're doing with ActiveType. Since it lives under the rails organization it might be...

engineyard.com

Nice tutorial about packaging Ruby bindings to your API in a Ruby gem, with tests using VCR casettes.

makandra dev

You need to copy an entire website? Use wget like this: wget -kr http://host.tld/ This will fetch all content...

If you're using the :header_html option in PDFKit (or the corresponding --header-html option in wkhtmltopdf), and the...

So you want to organize your I18n using multiple .yml files but your Rails 4.1 application simply won't use...

youtube.com

Great introduction to React.js and the ideas behind it.

There are different ways to run rake: On Rails 4.1+ projects, you have Spring and its binstubs which dramatically improve...

When your system is not running on English, you may sometimes want to run some applications and not use your...

In Rails, you can very easily send emails with HTML and plaintext bodies. However, if you're trying to debug...

Use reorder to replace an existing order clause with a new expression.

ruby.about.com

The flip-flop operator is a hotly contested feature of Ruby. It's still struggling to find an idiomatic use...

makandra dev

We will be installing rbenv and ruby-build from our own fork, not from the Ubuntu sources. Installing rbenv

# config/initializers/sidekiq.rb # Perform Sidekiq jobs immediately in development, # so you don't have to run a separate process.

Though nowhere to be found in the official docs, this works just fine. describe Facebook::Post do it_behaves_like...

makandra dev
developers.facebook.com

For server-to-server requests to the Facebook Graph API you can skip requesting an Oauth token, an...

By default git diff highlights whole lines as changes. To diff on a word-by-word basis you can say...

If you get an error like this: An error occurred while installing pg (0.17.1), and Bundler cannot continue.

nicksda.apotomo.de

It's like Paperclip or CarrierWave, but without any automagic integration.

List flavors to show the ID and name, the amount of memory, the amount of disk space for the root...

doubleyourfreelancing.com

How you can unknowingly screw your client's business when all you think about is closing the next user story...