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
| ============================= | |
| **http://kickass.to/infiniteskills-learning-jquery-mobile-working-files-t7967156.html | |
| **http://kickass.to/lynda-bootstrap-3-advanced-web-development-2013-eng-t8167587.html | |
| **http://kickass.to/lynda-css-advanced-typographic-techniques-t7928210.html | |
| **http://kickass.to/lynda-html5-projects-interactive-charts-2013-eng-t8167670.html | |
| **http://kickass.to/vtc-html5-css3-responsive-web-design-course-t7922533.html | |
| *http://kickass.to/10gen-m101js-mongodb-for-node-js-developers-2013-eng-t8165205.html | |
| *http://kickass.to/cbt-nuggets-amazon-web-services-aws-foundations-t7839734.html |
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 AWS = require('aws-sdk'), | |
| fs = require('fs'); | |
| // For dev purposes only | |
| AWS.config.update({ accessKeyId: '...', secretAccessKey: '...' }); | |
| // Read in the file, convert it to base64, store to S3 | |
| fs.readFile('del.txt', function (err, data) { | |
| if (err) { throw 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
| const promiseChaining = (req, res, next) => { | |
| let rsp = {}; | |
| const company = new Company({ | |
| name: 'FullStackhour' | |
| }); | |
| company.save() | |
| .then(savedCompany => { | |
| rsp.company = savedCompany; | |
| const job = new Job({ | |
| title: 'Node.js Developer', |
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 loopDemo(req, res, next) { | |
| let users = [1, 2, 3, 4, 5, 6]; | |
| let results = []; | |
| async.each(users, (userId, cb) => { | |
| RestClientService.get(`http://jsonplaceholder.typicode.com/users/${userId}/posts`, (posts, response) => { | |
| if (response.statusCode !== 200) { | |
| return cb('Unable to fetch the posts'); |
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
| //import the hapi package | |
| const hapi = require(‘hapi’); | |
| //create new server | |
| const server = new hapi.Server(); | |
| //connect the server to localhost and port should be 3000 | |
| server.connection({ | |
| host: ‘localhost’, | |
| port: ‘3000’ |
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
| npm init |
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
| npm install — save hapi |
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
| node server.js |
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 hapi = require(‘hapi’); | |
| const server = new hapi.Server(); | |
| server.connection({ | |
| host: ‘127.0 .0 .1’, | |
| port: ‘3000’ | |
| }); | |
| server.route({ |
OlderNewer