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
| /**Add all configuration settings here*/ | |
| module.exports = { | |
| mailUser: senderEmail, | |
| mailPass: senderPass | |
| } |
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
| const nodemailer = require('nodemailer') | |
| const config = require('./config') | |
| // create reusable transporter object using the default SMTP transport | |
| var transporter = nodemailer.createTransport("SMTP", { | |
| service: "Gmail", | |
| auth: { | |
| user: config.mailUser, | |
| pass: config.mailPass | |
| } |
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
| /** | |
| * Module dependencies | |
| */ | |
| const express = require('express') | |
| const bodyParser = require('body-parser') | |
| const app = express() | |
| const port = process.env.PORT || 3000 | |
| const router = express.Router() |
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
| function main() { | |
| var arr = [], array=[], h = 0; | |
| for(arr_i = 0; arr_i < 6; arr_i++){ | |
| arr[arr_i] = readLine().split(' '); | |
| arr[arr_i] = arr[arr_i].map(Number); | |
| } | |
| for(var i = 0; i < 4; i++){ | |
| for(var j = 0; j < 4; j++){ | |
| array[h] = arr[i][j] + arr[i][j+1] + arr[i][j+2] + arr[i+1][j+1]+ arr[i+2][j]+ arr[i+2][j+1]+ arr[i+2][j+2]; | |
| h++; |
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
| /** | |
| * Module dependencies. | |
| */ | |
| const LocalStrategy = require('passport-local').Strategy; | |
| const User = require('../../user/user.server.model').User; | |
| /** | |
| * Expose | |
| */ |
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
| /*! | |
| * Module dependencies. | |
| */ | |
| const User = require('../user/user.server.model').User; | |
| const local = require('./passport/local'); | |
| /** | |
| * Expose | |
| */ |
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
| const Mongoose = require('mongoose'); | |
| const config = require('./config'); | |
| Mongoose.connect(config.db); | |
| const db = Mongoose.connection; | |
| db.on('error', console.error.bind(console, 'connection error')); | |
| db.once('open', function callback() { | |
| console.log("Connection with database succeeded."); | |
| }); |
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
| /** | |
| * Module dependencies | |
| */ | |
| const express = require('express') | |
| const passport = require('passport') | |
| const db = require('./server/config/db') | |
| const bodyParser = require('body-parser') | |
| const expressSession = require('express-session') | |
| const cookieParser = require('cookie-parser') |
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
| module.exports = function() { | |
| console.log("Hello from test directory"); | |
| }; |
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
| module.exports = function() { | |
| console.log("Hello from myfile.js"); | |
| }; |