Skip to content

Instantly share code, notes, and snippets.

View borisd's full-sized avatar

Boris Dinkevich borisd

View GitHub Profile
@borisd
borisd / connect.ts
Last active May 10, 2016 15:32
using.ts
export class Connect {
private _store;
public unsubscribe;
public state;
constructor(store) {
this._store = store;
this.state = store.getState();
}
@borisd
borisd / gist:3274046
Created August 6, 2012 12:23 — forked from dpaluy/gist:3273630
Heroku SHARED DATABASE migration to PostgreSQL
if [ $# -eq 0 ] ; then
echo "No args given"
echo "Missing Heroku app name"
exit 1
fi
APP_NAME="--app ${1}"
echo "heroku addons:add heroku-postgresql:dev ${APP_NAME}"
heroku addons:add heroku-postgresql:dev ${APP_NAME}