Edit /etc/apt/sources.list and add the following lines to the bottom of the file:
# MongoDB
deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen
Then run the following commands:
Edit /etc/apt/sources.list and add the following lines to the bottom of the file:
# MongoDB
deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen
Then run the following commands:
| # Path to your oh-my-zsh configuration. | |
| export ZSH=$HOME/.oh-my-zsh | |
| # Set name of the theme to load. | |
| # Look in ~/.oh-my-zsh/themes/ | |
| # Optionally, if you set this to "random", it'll load a random theme each | |
| # time that oh-my-zsh is loaded. | |
| export ZSH_THEME="lukerandall" | |
| # Set to this to use case-sensitive completion |
| #!/usr/bin/env coffee | |
| global.mongoose = require 'mongoose' | |
| mongoose.connect 'mongodb://localhost/test' | |
| Schema = mongoose.Schema | |
| User = new Schema | |
| userId : { type: String, index: true, required: true } | |
| contacts : [ { type: Schema.ObjectId, ref: 'User' } ] |
| #!/usr/bin/env coffee | |
| global.mongoose = require 'mongoose' | |
| mongoose.connect 'mongodb://localhost/test' | |
| Schema = mongoose.Schema | |
| User = new Schema | |
| userId : { type: String, index: true, required: true } | |
| contacts : [ { type: Schema.ObjectId, ref: 'User' } ] |
| { | |
| "01": "Alabama", | |
| "02": "Alaska", | |
| "04": "Arizona", | |
| "05": "Arkansas", | |
| "06": "California", | |
| "08": "Colorado", | |
| "09": "Connecticut", | |
| "10": "Delaware", | |
| "11": "District of Columbia", |
| info it worked if it ends with ok | |
| verbose cli [ 'node', '/usr/local/bin/npm', 'install' ] | |
| info using [email protected] | |
| info using [email protected] | |
| verbose config file /home/jdevries/.npmrc | |
| verbose config file /usr/local/etc/npmrc | |
| silly testEngine { author: { name: 'Marc Harter', email: '[email protected]' }, | |
| silly testEngine name: 'rowe-law', | |
| silly testEngine version: '0.0.1', | |
| silly testEngine repository: { url: '' }, |
| function render(view,locals){ | |
| return function(req,res){ | |
| res.render(view,locals || {}); | |
| }; | |
| } | |
| var render = #(view,locals){ | |
| return #(req,res){ | |
| res.render(view,locals || {}); | |
| } |
| /** | |
| * Arc model | |
| * | |
| * @module Arc | |
| * @requires mongoose (npm install mongoose) | |
| * @requires User (models/User.js) | |
| * @global mongoose | |
| */ | |
| var Schema = mongoose.Schema, | |
| User = require('./User.js'); |
| /* | |
| * Copyright (c) 2010 Tobias Schneider | |
| * This script is freely distributable under the terms of the MIT license. | |
| */ | |
| (function(){ | |
| var UPC_SET = { | |
| "3211": '0', | |
| "2221": '1', | |
| "2122": '2', |