Skip to content

Instantly share code, notes, and snippets.

View gilluan's full-sized avatar
🎯
Focusing

Gilluan Dutra Formiga Sousa gilluan

🎯
Focusing
  • amplisaas.com
  • Sweden
View GitHub Profile
@gilluan
gilluan / serverless-function-reference-formats.yml
Created March 2, 2023 08:08 — forked from DavidWells/serverless-function-reference-formats.yml
Various ways to reference function name and ARN in serverless.yml
function:
foo:
handler: index.handler
# Ways to reference function in serverless.yml
FunctionName: !Sub arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${self:service.name}-${self:provider.stage}-foo
FunctionName: !GetAtt FooLambdaFunction.Arn
FunctionName: !Sub "${AWS::StackName}-foo"
FunctionName: ${self:service.name}-${self:provider.stage}-foo
@gilluan
gilluan / destructuring.js
Created March 19, 2018 04:15 — forked from mikaelbr/destructuring.js
Several demos and usages for ES6 destructuring. Runnable demos and slides about the same topic: http://git.mikaelb.net/presentations/bartjs/destructuring
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => [1, 2, 3];