Skip to content

Instantly share code, notes, and snippets.

var mongoose = require('mongoose');
var db = mongoose.connect('mongodb://localhost/mydb');
var Schema = mongoose.Schema;
var Posts = new Schema({
name : String,
subject: String,
comment : String,
password: String,
});
@cowboy
cowboy / jquery.ba-each2.js
Created August 1, 2010 13:32 — forked from padolsey/gist:500145
Like .quickEach, but subtly different
// Plugin released:
// http://benalman.com/projects/jquery-misc-plugins/#each2