Skip to content

Instantly share code, notes, and snippets.

@jsvine
Created April 26, 2012 19:56
Show Gist options
  • Save jsvine/2502565 to your computer and use it in GitHub Desktop.
Save jsvine/2502565 to your computer and use it in GitHub Desktop.
vertebrates.js
var Vertebrate = {};
Vertebrate.Model = Backbone.Model.extend();
Vertebrate.Collection = Backbone.Collection.extend({
model: Vertebrate.Model
});
// Source: http://en.wikipedia.org/wiki/Vertebrates
var vertebrates = new Vertebrate.Collection([
{
tax_class: "Angatha",
description: "jawless fishes",
wiki_url: "http://en.wikipedia.org/wiki/Agnatha",
img: "http://upload.wikimedia.org/wikipedia/commons/3/3f/Lampetra_fluviatilis.jpg",
cost: "$1,000"
},{
tax_class: "Chondrichthyes",
description: "cartilaginous fishes",
wiki_url: "http://en.wikipedia.org/wiki/Chondrichthyes",
img: "http://upload.wikimedia.org/wikipedia/commons/thumb/5/56/White_shark.jpg/320px-White_shark.jpg",
cost: "$5,000"
},{
tax_class: "Osteichthyes",
description: "bony fishes",
wiki_url: "http://en.wikipedia.org/wiki/Osteichthyes",
img: "http://upload.wikimedia.org/wikipedia/commons/2/25/Herring2.jpg",
cost: "$1,250,000"
},{
tax_class: "Amphibia",
description: "amphibians",
wiki_url: "http://en.wikipedia.org/wiki/Amphibia",
img: "http://upload.wikimedia.org/wikipedia/commons/thumb/8/87/Bufo_periglenes1.jpg/320px-Bufo_periglenes1.jpg",
cost: "$7"
},{
tax_class: "Reptilia",
description: "reptiles",
wiki_url: "http://en.wikipedia.org/wiki/Reptilia",
img: "http://upload.wikimedia.org/wikipedia/commons/5/56/Hylonomus_BW.jpg",
cost: "$900"
},{
tax_class: "Aves",
description: "birds",
wiki_url: "http://en.wikipedia.org/wiki/Aves",
img: "http://upload.wikimedia.org/wikipedia/commons/thumb/3/32/House_sparrow04.jpg/320px-House_sparrow04.jpg",
cost: "$88"
},{
tax_class: "Mammalia",
description: "mammals",
wiki_url: "http://en.wikipedia.org/wiki/Mammalia",
img: "http://upload.wikimedia.org/wikipedia/commons/thumb/0/09/TheCheethcat.jpg/160px-TheCheethcat.jpg",
cost: "$600,000"
}
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment