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'); | |
var sinon = require('sinon'); | |
// Only works for 'createBucket', 'update' and a few others since most API methods are generated dynamically | |
// upon instantiation. Very counterintuitive, thanks Amazon! | |
var createBucket = sinon.stub(Aws.S3.prototype, 'createBucket'); | |
createBucket.yields(null, 'Me create bucket'); | |
// For other methods, we can 'assign' the stubs to the proto, already defined function won't be overridden | |
var listBuckets = Aws.S3.prototype.listBuckets = sinon.stub(); |
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
# Manager README | |
As your manager, I look forward to getting to know you more through conversations and interactions. To give you a head start in knowing me I'd like to share my philoshopies and some information about myself. | |
#### I’m here to help you succeed, to provide the vision and context, and to represent you and the team across the company. | |
_DISCLAIMER – This document speaks on my behalf. It does not represent any other manager or team. It is a work in progress and I will iterate and adjust it based on experiences and feedback._ | |
## Leadership Style | |
I'm a strong believer in [Servant Leadership](https://en.wikipedia.org/wiki/Servant_leadership). I serve you, not the other way around. I'm here to empower you to be your best and to help you grow. |
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 gamertag = 'TheAwesomeOne0110', // Set default gamer tag | |
gamers = [{ | |
gamertag: 'SomeGamer1', | |
email: '[email protected]' | |
}, { | |
gamertag: 'GrumpyTrollolol', | |
email: '[email protected]' | |
}]; | |
console.log( 'Before:', gamertag ); // TheAwesomeOne0110 |
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 gamertag = 'TheAwesomeOne0110', // Set default gamer tag | |
gamers = [{ | |
gamertag: 'SomeGamer1', | |
email: '[email protected]' | |
}, { | |
gamertag: 'GrumpyTrollolol', | |
email: '[email protected]' | |
}]; | |
console.log( 'Before:', gamertag ); // TheAwesomeOne0110 |
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 greetUser( prefix, firstName, lastName ) { | |
var greeting = `Hello ${ prefix } ${ firstName } ${ lastName }!`; | |
return greeting; | |
} | |
console.log( greetUser( 'Mr.', 'Tony', 'Stark' ) ); // Hello Mr. Tony Stark! |
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 template = `You can type some text on the first line. | |
Then jump down to the next line. | |
You can even use tabs right inside the templates.`; |
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 template = `Simply use backticks to create a string template.`; | |
console.log( template ); |
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 message = [ | |
'I hope you can read my mind and understand how terrible', | |
'concatenating strings are in the current version of', | |
'JavaScript <%= prefix %> <%= firstName %> ', | |
'<%= lastName %> There nothing fun about it. Just a', | |
'whole lot of pain and yawn mode' | |
].join( '\n' ); | |
console.log( message ); |
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 messageUser( prefix, firstName, lastName ) { | |
var message = 'I hope you can read my mind and understand how terrible \ | |
concatenating strings are in the current version of \ | |
JavaScript ' + prefix + ' ' + firstName + ' \ | |
' + lastName + '. There nothing fun about it. Just a \ | |
whole lot of pain and yawn mode'; | |
return message; | |
} | |
messageUser( 'Prof.', 'Charles', 'Xavier' ); |
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 greetUser( prefix, firstName, lastName ) { | |
var greeting = 'Hello ' + prefix + ' ' + firstName + ' ' + lastName + '!'; | |
return greeting; | |
} | |
console.log( greetUser( 'Mr.', 'Tony', 'Stark' ) ); // Hello Mr. Tony Stark! |
NewerOlder