This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set up the copyright information | |
// Each image used should indicate its copyright permissions | |
var myCopyright = new GCopyrightCollection("© "); | |
myCopyright.addCopyright(new GCopyright('Demo', | |
new GLatLngBounds(new GLatLng(-90,-180), new GLatLng(90,180)), | |
0,'©2007 Google')); | |
// Create the tile layer overlay and | |
// implement the three abstract methods | |
var tilelayer = new GTileLayer(myCopyright); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.listLogs = function(req, res) { | |
SurfSession.find() | |
.populate('location') | |
.run(function(err, log) { | |
Wave.find(function(err, waves) { | |
var surfHeight = SurfSession.schema.path('surfHeight').enumValues; | |
var surfConditions = SurfSession.schema.path('surfConditions').enumValues; | |
var surfStoke = new SurfSession().generateStoke(); | |
var currentYear = moment().year(); | |
var surfSessionsThisYear = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.use(express.session({ | |
secret:'awesome unicorns', | |
maxAge: new Date(Date.now() + 3600000), | |
store: new MongoStore({ | |
db:mongoose.connection.db}, | |
function(err){ | |
console.log(err || 'connect-mongodb setup ok'); | |
}) | |
})); |
OlderNewer