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
TIPO_UN = 'un' | |
TIPO_KG = 'kg' | |
def obter_catalogo_de_produtos() -> list: | |
return [ | |
{ | |
'nome': 'Batata branca', | |
'tipo': TIPO_KG, | |
'preco': 8.99, |
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 get_questions(amount: int = 10, difficulty: str = 'easy') -> dict: | |
import http.client | |
import json | |
conn = http.client.HTTPSConnection("opentdb.com") | |
conn.request("GET", f"/api.php?amount={amount}&difficulty={difficulty}&type=multiple") | |
response = conn.getresponse() | |
response_text = response.read().decode() | |
conn.close() | |
return json.loads(response_text) |
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
import os | |
# Comando para limpar o console | |
# 'cls' para Windows e 'clear' para Mac e Linux | |
cmd = "cls" if os.name == "nt" else "clear" | |
os.system(cmd) | |
import time | |
# Comando para 'esperar' 1s antes de seguir para o próximo comando | |
time.sleep(1) # 1 segundo | |
time.sleep(0.5) # meio segundo (500ms) |
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
# Pequeno exemplo de aplicação geradora de dados fictícios para exercícios de aula. | |
import datetime | |
import random | |
entrevistados = [ | |
'Albano Marcelo', | |
'Felipe Matheus', | |
'Aécio Alfredo', | |
'Ian Danilo', |
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
{"schemaVersion":1,"label":"Coverage","message":"100%","color":"hsl(120, 100%, 40%)"} |
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
import android.content.pm.PackageInfo; | |
import android.content.pm.PackageManager; | |
import android.content.pm.Signature; | |
import android.util.Base64; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
//... | |
private void printKeyHash() { |
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
VAGA: | |
- Startup contrata desenvolvedor backend | |
Perfil: | |
Profissional comunicativo e ágil, capaz de se adequar ao ambiente dinâmico de uma start-up. | |
Motivado, pró-ativo e atento às novas tecnologias e tendências. | |
Esperamos ensino superior na área (cursando ou concluído) além de experiência com desenvolvimento web. | |
Precisará ter facilidade com o inglês e capacidade de se organizar. | |
Responsabilidades: |
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
Verifying that +matheusjardimb is my blockchain ID. https://onename.com/matheusjardimb |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
Great set of colors from from http://flatuicolors.com/ and converted into Android colors.xml | |
--> | |
<resources> | |
<color name="turquoise">#1abc9c</color> | |
<color name="emerald">#2ecc71</color> | |
<color name="peter_river">#3498db</color> |
NewerOlder