Skip to content

Instantly share code, notes, and snippets.

View adlermedrado's full-sized avatar
🏠
Working from home

Adler Medrado adlermedrado

🏠
Working from home
View GitHub Profile
@adlermedrado
adlermedrado / Mongoose example
Created October 21, 2011 19:53 — forked from mcantelon/Mongoose example
Mongoose example
// from Horofox in #node.js
var mongoose = require('mongoose');
var db = mongoose.connect('mongodb://localhost/mydb');
function allowPosts(mongoose) {
var Schema = mongoose.Schema;
var Posts = new Schema({
name : String,
subject: String,
comment : String,
@hukash
hukash / Grails environment on Snow Leopard
Created October 11, 2009 09:02
Groovy/Grails environment on Snow Leopard
Install Groovy:
$ sudo mv groovy-1.x.x /usr/share
$ cd /usr/share
$ sudo chmod 0755 groovy-1.x.x/bin/*
$ sudo ln -s groovy-1.x.x groovy
Install Grails:
$ sudo mv grails-1.x.x /usr/share