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
| service: lambda-example | |
| provider: | |
| name: aws | |
| runtime: python3.7 | |
| package: | |
| individually: true | |
| exclude: | |
| - __pycache__/** | |
| - node_modules/** |
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
| """Sample docstring docu.""" | |
| import pandas as pd | |
| import sqlalchemy | |
| def handler(event, context): | |
| """Sample handler function.""" | |
| response = { | |
| "statusCode": 200, | |
| "body": "", |
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
| service: sls-layers-pandas | |
| provider: | |
| name: aws | |
| runtime: python3.7 | |
| plugins: | |
| - serverless-python-requirements | |
| custom: |
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
| #!/bin/sh | |
| STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".jsx\{0,1\}$") | |
| ESLINT="$(git rev-parse --show-toplevel)/node_modules/.bin/eslint" | |
| if [[ "$STAGED_FILES" = "" ]]; then | |
| exit 0 | |
| fi | |
| PASS=true |
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
| { | |
| id: “507f1f77bcf86cd799439011”, | |
| mongo_shard: 0, | |
| skills_ids: [“507f191e810c19729de860ea”,”507c7f79bcf86cd7994f6c0e”] | |
| } |
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
| { | |
| id: "507f191e810c19729de860ea", | |
| ranking: 1, | |
| name: "C++" | |
| } |
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
| { | |
| id: “507f191e810c19729de860ea”, | |
| ranking: 1, | |
| name: “C++” | |
| }, | |
| { | |
| id: “507c7f79bcf86cd7994f6c0e”, | |
| ranking: 1, | |
| name: “Java” | |
| } |
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
| { | |
| id: “507f1f77bcf86cd799439011”, | |
| mongo_shard: 0, // Where the profile is | |
| skills_ids: [“507f191e810c19729de860ea”,”507c7f79bcf86cd7994f6c0e”] | |
| } |
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
| { | |
| _id: ObjectId(“507f191e810c19729de860ea”), | |
| name: “C++”, | |
| ranking: 1 // Amount of profiles that has C++ skill on his profile | |
| }, | |
| { | |
| _id: ObjectId(“507c7f79bcf86cd7994f6c0e”), | |
| name: “Java”, | |
| ranking: 1 // Amount of profiles that has Java skill on his profile | |
| } |
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
| { | |
| _id : ObjectId(“507f1f77bcf86cd799439011”), | |
| name: “Jose”, | |
| last_name: “Castelli”, | |
| skills: [ | |
| {skill_name: ”C++”,”Java”} | |
| ] | |
| } |