nandovieira.com

Postgres 9.4 introduces a new column type: jsonb. json and jsonb columns store data differently, so just compare the two...

guides.rubyonrails.org

When running migrations with rake db:migrate, there's the STEP and VERSION parameters that you can pass to nearly...

makandra dev

TL;DR Block formatting contexts establish an isolating container. float and clear only apply to elements within such a container...

The CSS property z-index is not as global as you might think. Actually, it is scoped to a so...

Right-click on the table Select Table... Select Text flow Uncheck Allow row to break across pages and columns

tldr; Use git diff -M or git diff --find-renames when you've moved a few files around. Usage

This will list all branches matching your query as input options for git checkout greckout ar 1) ar/cache-api-keys-1098...

If you want to load an SQL dump from an ActiveRecord migration, you might find this to be harder than...

makandra dev
github.com

Geordi 1.0 features a command line application geordi, that holds most of Geordi's previous commands. New features

Add gem 'database_cleaner' to your Gemfile. Then: Cucumber & Rails 3+ # features/support/database_cleaner.rb DatabaseCleaner.clean_with(:deletion) # clean once, now DatabaseCleaner.strategy = :transaction...

matchingnotes.com

Sequel is an awesome ORM such as ActiveRecord. The linked article describes how easily you can implement and use materialized...

In the tradition of our PostgreSQL cheat sheet for MySQL lamers, here is a cheat sheet for Jasmine when you...

Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...

makandra dev
github.com

This jasmine plugin helps with testing DOM manipulation in two ways: It gives you DOM-related matchers like toBeVisible() or...

Angular 1.3+ has an alternative getter/setter pattern: You can bind ng-model to an accessor function. This is a function...

dimsemenov.com

Responsive Lightbox JavaScript that just works. You can use it for single images or a gallery. Animations are optional.

pgcli.com

A CLI for working with Postgres databases. Ships with auto-completion and syntax highlighting.

The API is a little confusing because animate returns a reference to the element to enable chaining.

jQuery comes with .animate() that lets you transition some CSS selectors: function floatIn($element) { $element.css({ 'opacity': 0, 'margin-top': 200px...

edgeguides.rubyonrails.org

Rails guide that covers PostgreSQL-specific column types and usages for Active Record. You should especially keep in mind the...

Sometimes you want Angular to watch an object only until a certain state is reached (e.g. an object appears in...

The Angular 1.2 way: # By default, angular returns undefined for invalid attributes which removes # the value from the form field...

SELECT enum_range(NULL::portal) # Returns an array of all possible values SELECT unnest(enum_range(NULL::portal)) # Unnests the...

airpair.com

A lot of the advice involves less separations of concerns in your code ("don't use $watch", "don't use...