>>> f" Ana ".center(50, "o")
'oooooooooooooooooooooo Ana ooooooooooooooooooooooo'
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
CRATE_SIZE = 24 | |
def beer_formula(rsvps): | |
minimum = 1.3 | |
maximum = 2 | |
return int(minimum * rsvps), int(maximum * rsvps) | |
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
""" | |
Migrate from model_mommy to model_bakery. | |
``python from_mommy_to_bakery.py --dry-run`` | |
""" | |
import argparse | |
import os | |
import re |
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
""" | |
Migrate from model_mommy to model_bakery. | |
``python from_mommy_to_bakery.py --dry-run`` | |
Please check your dependency files. | |
""" | |
import argparse | |
import os |
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
# install dependencies from .cfg file (from https://stackoverflow.com/a/46573039/1344295) | |
python -c "import configparser; c = configparser.ConfigParser(); c.read('setup.cfg'); print(c['options']['install_requires'])" | xargs pip install |
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
"""Find class or methods override by Python silently.""" | |
import argparse | |
import os | |
import re | |
from pprint import pprint | |
CLASS_OR_METHOD = r'\b(class|def) (.*)\(' | |
CLASS_OR_METHOD_PATTERN = re.compile(CLASS_OR_METHOD) |
Até então só havia encontrado PDFs ou XLSs com a classificação das despesa orçamentária por natureza.
Converti o conteúdo da Tabela de despesa e classificação por fonte e destinação de recurso 2020 do SICOM TCE-MG em um CSV, adicionando apenas uma coluna para o código sem máscara.
Coluna | Descrição |
---|
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 flask import Flask, request | |
from twilio.twiml.voice_response import Dial, VoiceResponse, Gather | |
from calls import CallQueue | |
call_queue = CallQueue("support") | |
app = Flask(__name__) | |
AGENTS = { | |
"+000000000001": "Ana", |