I hereby claim:
- I am gib on github.
- I am greims (https://keybase.io/greims) on keybase.
- I have a public key ASA2mwAUIwnTg7yRpIZkGyRk41_0MOzgqsOe2cGz106JiQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Steps to install and run PostgreSQL 9.2 using Homebrew (Mac OS X) | |
(if you aren't using version 9.1.5, change line 6 with the correct version) | |
1. launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist | |
2. mv /usr/local/var/postgres /usr/local/var/postgres91 | |
3. brew update | |
4. brew upgrade postgresql | |
5. initdb /usr/local/var/postgres -E utf8 | |
6. pg_upgrade -b /usr/local/Cellar/postgresql/9.1.5/bin -B /usr/local/Cellar/postgresql/9.2.0/bin -d /usr/local/var/postgres91 -D /usr/local/var/postgres | |
7. cp /usr/local/Cellar/postgresql/9.2.0/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/ |
import JSONAPIAdapter from 'ember-data/adapters/json-api'; | |
export default JSONAPIAdapter.extend({ | |
host: 'https://app-3642.on-aptible.com' | |
}); |
#!/bin/sh | |
# Put this in .git/hooks/pre-commit | |
bundle exec rubocop . |
I love coffescript's null soakage ?
operator, but I recently started using Backbone.Model
's @has
(http://backbonejs.org/#Model-has, http://backbonejs.org/docs/backbone.html#section-37) when determining if an attribute is set. The JavaScript result is much more DRY since it uses a single Backbone method instead of duplicating the logic, you also save a var
...
@get('attachments')?.length > 0
becomes
var _ref;
((_ref = this.get('attachments')) != null ? _ref.length : void 0) > 0;