Skip to content

Instantly share code, notes, and snippets.

var table = 'companies';
var Company = function() {
}
// Get company with just their email address
Company.prototype.getByEmail = function (email, callback) {
client.query(
'SELECT * FROM ' + table +
var Company = function (app) {
console.log(app.set('client').host);
this.table = 'companies';
this.client = app.set('client');
};
// Create the company
Company.prototype.create = function(name, contact, email, password, callback) {
this.client.query(
'INSERT INTO ' + this.table +
@joshsmith
joshsmith / gist:1612606
Created January 14, 2012 19:30
jitsu error logs
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy your application.
error:
error: NPM Install failed
error: NPM failed to install dependencies
error:
error: This type of error is usually a user error.
error: Error output from Haibu:
error:
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy your application.
error:
error: NPM Install failed
error: NPM failed to install dependencies
error:
error: This type of error is usually a user error.
error: Error output from Haibu:
error:
info - socket.io started
debug - served static content /socket.io.js
debug - client authorized
info - handshake authorized 9526703271487712735
debug - setting request GET /socket.io/1/xhr-polling/9526703271487712735?t=1327725212795
debug - setting poll timeout
debug - client authorized for
debug - clearing poll timeout
debug - xhr-polling writing 1::
debug - set close timeout for client 9526703271487712735
function (argument, callback) {
return callback(null);
}
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
warn: Error returned from Nodejitsu
error: Error: connect ECONNREFUSED
error: at errnoException (net.js:640:11)
error: at Object.afterConnect [as oncomplete] (net.js:631:18)
info: Nodejitsu not ok
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy your application.
error:
error: NPM Install failed
error: NPM failed to install dependencies
error:
error: This type of error is usually a user error.
error: Error output from Haibu:
error:
if (typeof String.prototype.startsWith != 'function') {
String.prototype.startsWith = function (str){
return this.indexOf(str) == 0;
};
}
if (!share_url.startsWith("http://") && !share_url.startsWith("https://")) {
share_url = "http://" + share_url;
}

PHIL √-1 Introduction to Philosophy of Mathematics

An "imaginary" and (so far) unapproved course in the philosophy of mathematics.

Lecturer: Josh Smith email: [email protected] Office hours: TBD.

Overview There seems to be something remarkable about mathematics that sets it apart from the natural sciences. While the natural sciences are concerned with real entities, mathematics appears to be concerned with abstract concepts. The methods of mathematics differ, too. We seem to acquire mathematical knowledge through deductive reasoning, quite differently than the inductive methods used in the natural sciences. We are left to wonder how and why mathematics is effective, what mathematical entities are, and how we come to mathematical knowledge at all. Our course will take us on a whirlwind tour of the philosophy of mathematics, beginning with a brief history of some traditional views. We will work through a variety of schools and debates: logicism, formalism, intuitionism, platonism, nominalism, and struc