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
config: | |
FunctionName: lambda-python | |
Handler: index.handler | |
Runtime: nodejs | |
Description: Python hello world from Lambda | |
install: make |
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
config: | |
FunctionName: aws-lambda-aes-gist | |
Handler: index.handler | |
Runtime: nodejs | |
Description: A Lambda function for AES encryption/decryption, from a Gist! | |
install: npm install --production |
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
/** | |
* config: | |
* FunctionName: hello-world | |
* Handler: hello-world.handler | |
* Runtime: nodejs | |
* Description: My awesome Hello World function! | |
*/ | |
console.log('Loading event'); | |
exports.handler = function(event, context) { |
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
// fib(): Calculates the nth Fibonacci number. | |
// - n: The number to calculate | |
return function(n, a, b) { | |
return n > 0 ? arguments.callee(n - 1, b, a + b) : a; | |
}(n, 0, 1); |
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(): Adds two numbers. | |
// - a: The first number | |
// - b: The second number | |
return a + b; |