Skip to content

Instantly share code, notes, and snippets.

View kelby's full-sized avatar
💭
lalala...

kelby

💭
lalala...
View GitHub Profile
@kelby
kelby / backup_postgres.sh
Last active October 29, 2015 04:41 — forked from skyebook/backup_postgres.sh
Backup OpenShift PostgreSQL Database
#!/bin/bash
# Backs up the OpenShift PostgreSQL database for this application
# by Skye Book <[email protected]>
# Local
rhc ssh
# Seiver
NOW="$(date +"%Y-%m-%d")"
FILENAME="$OPENSHIFT_DATA_DIR/$OPENSHIFT_APP_NAME.$NOW.backup.sql.gz"
@kelby
kelby / How to use Backbone.js.md
Last active September 3, 2015 12:02 — forked from nightire/How to use Backbone.js.md
How to use Backbone.js

Simple Starting Point

创建 Model

var Person = Backbone.Model.extend();
zh-CN:
admin:
js:
true: 是的
false: 不是
is_present: 已经存在
is_blank: 不存在
date: 日期 ...
between_and_: 从 ... 到 ...
today: 今天