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
<select name="estados-brasil"> | |
<option value="AC">Acre</option> | |
<option value="AL">Alagoas</option> | |
<option value="AP">Amapá</option> | |
<option value="AM">Amazonas</option> | |
<option value="BA">Bahia</option> | |
<option value="CE">Ceará</option> | |
<option value="DF">Distrito Federal</option> | |
<option value="ES">Espírito Santo</option> | |
<option value="GO">Goiás</option> |
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
// dialog para dar um feedback ao usuario | |
progressDialog.setMessage(getResources().getString(R.string.loadingRegistros)); | |
progressDialog.show(); | |
// string request | |
StringRequest stringRequest = new StringRequest(Request.Method.POST, JSON_URL, | |
new Response.Listener<String>() { | |
@Override | |
public void onResponse(String response) { |
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
var n = 0; | |
//Reiniciar o contador em qualquer ação do usuario | |
document.onclick = function() { | |
n = 0; | |
}; | |
document.onmousemove = function() { | |
n = 0; | |
}; | |
document.onmousedown = function() { | |
n = 0; |
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
<script> | |
function typeWrite(elemento){ | |
const textoArray = elemento.innerHTML.split(''); | |
elemento.innerHTML = ''; | |
textoArray.forEach((letra, i) => { | |
setTimeout(function(){ | |
elemento.innerHTML += letra; | |
}, 75 * i) | |
}) |
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
from cryptography.hazmat.primitives import hashes | |
from cryptography.hazmat.primitives.asymmetric import rsa, padding | |
# Usando o pacote cryptografhy crie 3 funções; | |
# • Que cria uma chave publica e privada usando o RSA | |
# • Uma função que assina uma mensagem usando a chave privada | |
# • Outra função que verifica se a mensagem foi assinada de forma correta | |
def gerarChaves(): | |
return rsa.generate_private_key( |
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
// SPDX-License-Identifier: MIT | |
pragma solidity >= 0.7.0 < 0.9.0; | |
/** | |
Crie um contrato que realize: | |
- Guarda o endereço do dono do contrato (quem publicou este contrato). - Feito | |
- Guarda somente uma mensagem, quem a publicou e o ultimo valor pago para publicar esta mensagem; - Feito | |
- Para modificar esta mensagem, a pessoa precisa enviar um valor maior que o pago anteriormente; - Feito | |
- É possível para o dono do contrato, retirar os valores depositados nele. |