This file contains 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
{ | |
"name": "temporal-worker", | |
"$schema": "../../node_modules/nx/schemas/project-schema.json", | |
"sourceRoot": "apps/temporal-worker/src", | |
"projectType": "application", | |
"targets": { | |
"bundle-workflow": { | |
"executor": "nx:run-commands", | |
"dependsOn": [], | |
"options": { |
This file contains 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
def extrair_atributos(descricao,todos_atributos) | |
# temos que pegar a descrição e procurar por alguma palavra dos atributos: | |
# garagem; vagas; banheiros; quartos; suites; | |
# quarto com banheiro = suite | |
# temos que procurar por algum conjunto de número antes ou depois do aparecimento da palavra | |
# Procedimentos: | |
# Pegar a descrição | |
# Transformar em um array | |
# Procurar por algum atributo | |
# Se encontrar, |
This file contains 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
# Escreva uma função que diminua uma string para um tamanho informado. Ao invés de cortar o final da string, sua função cortará a string pelo meio. | |
# Exemplo: | |
# sentence = "The quick brown fox jumps over the lazy dog" | |
# res = shorten(sentence, 27) | |
# res === "The quick br...the lazy dog" | |
# Regras: | |
# - A string resultante nunca deve ser maior ou menor que o tamanho informado. |