Skip to content

Instantly share code, notes, and snippets.

View deathbearbrown's full-sized avatar

Sue Lockwood deathbearbrown

  • Seattle, WA
View GitHub Profile
Greetings couchdb pals,
__
.'` `'.
/ \ _
; __.'` `'.
| .'` `'. \
; /Fauxton \ ;
\; UI ; |
| Redesign | ; _
; is live ;-./-_-` '-.
@deathbearbrown
deathbearbrown / gist:5784139
Created June 14, 2013 18:29
Models and Collections
You might be used to thinking of a model like a prototype.
You know a Person in your DB will have the following attributes: Name, Age, Phone
in backbone you'd make a model for person like this
Person = Backbone.Model.extend({
defaults: {
name:"Billy",
age:"33",
phone:"555-555-5555"
@deathbearbrown
deathbearbrown / gist:4636575
Created January 25, 2013 18:11
some data from Hubstation
[
{
"temporary": "FALSE",
"name": "Fan Pier",
"installed": "TRUE",
"terminalName": "A32000",
"lat": "42.353412",
"locked": "FALSE",
"lng": "-71.044624",
"id": "7"