pyenv virtualenv 3.7.7 contacts-service
pyenv local contacts-service 3.7.7
pipenv sync -d
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/bash | |
| # Usage: | |
| # ./upgrade.sh $image_tag [$aws_profile] | |
| # ./upgrade.sh 0.49.3 profile | |
| export AWS_PAGER="" | |
| image_tag=$1 | |
| aws_profile=${2:-'default'} |
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 typing import TypeVar, Tuple, Generic | |
| T = TypeVar('T') | |
| E = TypeVar('E') | |
| class Result(Generic[T, E]): | |
| def __init__(self, value: T=None, error: E=None): | |
| self.value = value | |
| self.error = error | |
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
| is:pr is:open author:app/dependabot org:*** |
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
| enum TransferStatus { | |
| created, | |
| authorizing, | |
| sending, | |
| verifying, | |
| pending, | |
| refunded, | |
| success, | |
| error, | |
| } |
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
| import 'package:flutter/material.dart'; | |
| final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override |
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
| import json | |
| from decimal import Decimal | |
| class A: | |
| def __init__(self, value): | |
| self.bar = Decimal(value) | |
| def to_dict(self): | |
| return { |
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.dialects import postgresql | |
| print(statement.compile(dialect=postgresql.dialect())) | |
| from sqlalchemy.engine.default import DefaultDialect | |
| from sqlalchemy.sql.sqltypes import String, DateTime, NullType | |
| # python2/3 compatible. | |
| PY3 = str is not bytes | |
| text = str if PY3 else unicode | |
| int_type = int if PY3 else (int, long) |
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.dialects import postgresql | |
| print(statement.compile(dialect=postgresql.dialect())) |
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
| class Movement { | |
| String get status => 'COMPLETED'; | |
| bool get isForeignCurrency => false; | |
| } | |
| class Deposit extends Movement {} | |
| class Charge extends Movement { | |
| String status; |
NewerOlder