Ctrl + Alt + Space
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
| from sqlalchemy import create_engine | |
| from sqlalchemy.orm import sessionmaker, scoped_session | |
| from contextlib import contextmanager | |
| import logging | |
| l = logging.getLogger(__name__) | |
| class DataAccessLayer(object): |
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
| # See https://www.anaconda.com/understanding-and-improving-condas-performance/ for more info. | |
| # help debug channel issues | |
| show_channel_urls: true | |
| # pip will always be installed with python | |
| add_pip_as_python_dependency: true | |
| # strict priority and conda-forge at the top will ensure | |
| # that all of your packages will be from conda-forge unless they only exist on defaults |
The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the
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 zlib = require('zlib'); | |
| exports.decode = async (data) => { | |
| const compressedPayload = Buffer.from(data, 'base64'); | |
| const jsonPayload = zlib.gunzipSync(compressedPayload).toString('utf8'); | |
| return JSON.parse(jsonPayload); | |
| } |
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
| --- | |
| AWSTemplateFormatVersion: '2010-09-09' | |
| Description: Sample template that contains a Lambda function behind an API GW | |
| Resources: | |
| # BEGIN: Should only need this in an empty API Gateway situation | |
| ApiGatewayCloudWatchLogsRole: | |
| Type: AWS::IAM::Role | |
| Properties: | |
| AssumeRolePolicyDocument: | |
| Version: '2012-10-17' |
| Type | Emoji | code |
|---|---|---|
| feat | ✨ | :sparkles: |
| fix | 🐛 | :bug: |
| docs | 📚 | :books: |
| style | 💎 | :gem: |
| refactor | 🔨 | :hammer: |
| perf | 🚀 | :rocket: |
| test | 🚨 | :rotating_light: |
| build | 📦 | :package: |
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
| /CHANGELOG merge=union |