This file contains hidden or 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
var mongoose = require('mongoose'); | |
mongoose.connection.on('open', function (ref) { | |
console.log('Connected to mongo server.'); | |
}); | |
mongoose.connection.on('error', function (err) { | |
console.log('Could not connect to mongo server!'); | |
console.log(err); | |
}); |
This file contains hidden or 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
/* my-widget.css */ |
This file contains hidden or 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
/* my-widget.css */ |
This file contains hidden or 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
// my-wdiget.js | |
+function ($) { 'use strict'; | |
var Plugin = function (element, options) { | |
this.element = element; | |
this.options = options ? options : Plugin.DEFAULTS; | |
return this; | |
}; |