Postgres 9.4 introduces a new column type: jsonb. json and jsonb columns store data differently, so just compare the two...
When running migrations with rake db:migrate, there's the STEP and VERSION parameters that you can pass to nearly...
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...
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...
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...
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...
Responsive Lightbox JavaScript that just works. You can use it for single images or a gallery. Animations are optional.
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...
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...
A lot of the advice involves less separations of concerns in your code ("don't use $watch", "don't use...