Skip to content

Instantly share code, notes, and snippets.

View heymichaelp's full-sized avatar

Michael Phillips heymichaelp

View GitHub Profile
Last login: Thu Mar 13 10:43:11 on ttys003
Michaels-MacBook-Air:~ michaelphillips$ foo
{
"ie": {
"icon": "/agents/icons/browser_ie.png"
},
"firefox": {
"icon": "/agents/icons/browser_firefox.png"
},
"chrome": {
"icon": "/agents/icons/browser_chrome.png"
},
var collectionsToEmpty = [ 'bidOMatics', 'bidTransactions', 'bids', 'invoices', 'users' ];
for(var i = 0; i < collectionsToEmpty.length; i++)
db[collectionsToEmpty[i]].remove({});
if(db.paypal_tx)
db.paypal_tx.drop();
db.auctions.update({},
{
$set: { currentPrice: 0.0 },
S3_BUCKET=browser-support
MONGO_DB=browser-support
MONGO_PASSWORD=KECrZojsdKcDGokhtYhxwo7rCfELxp
MONGO_PORT=27017
MONGO_SERVER=0.0.0.0
MONGO_USER=userMJzqT7
S3_BUCKET=browser-support
MONGO_DB=browser-support
MONGO_PORT=27017
MONGO_SERVER=0.0.0.0
npm http GET https://registry.npmjs.org/connect
npm http GET https://registry.npmjs.org/send
npm http GET https://registry.npmjs.org/broccoli-kitchen-sink-helpers
npm http 200 https://registry.npmjs.org/findup-sync
npm ERR! Error: No compatible version found: findup-sync@'^0.1.2'
npm ERR! Valid install targets:
npm ERR! ["0.1.0","0.1.1","0.1.2","0.1.3"]
Michaels-MacBook-Air:foobar michaelphillips$ node -v
v0.10.9
Michaels-MacBook-Air:foobar michaelphillips$ npm -v
1.2.24
var Rating = function( letter ) {
this.letter = letter;
}
Rating.from_cost = function( cost ) {
if ( cost <= 2 ) {
return new this( 'A' );
} else if ( cost <= 4 ) {
return new this( 'B' );
} else if ( cost <= 8 ) {
var moment = require('moment');
var Review = function( review ) {
this.review = review;
}
Review.prototype.authorFullName = function() {
var moment = require('moment');
var Review = function( review ) {
this.review = review;
}
Review.prototype.authorFullName = function() {