- point(posiçãoX, posiçãoY);
- line(posiçãoX1, posiçãoY1, posiçãoX2, posiçãoY2);
- strokeWeight(espressura);
- stroke(vermelho, verde, azul, alpha);
- fill(vermelho, verde, azul, alpha);
- background(vermelho, verde, azul, alpha);
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
valor = int(input('Entre com um número, para saber o quadrado perfeito: ')) | |
aux = 1 | |
raizQ = int(valor ** (1/2)) | |
if((raizQ ** 2) == valor ): | |
print('O número {0} é um quadrado perfeito!!!'.format(int(valor))) | |
else: | |
print('O número {0} não é quadrado perfeito!!!'.format(valor)) |
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
raio = float(input('Entre com o valor do raio, para obter a área: ')) | |
area = 3.14 * (raio * raio) | |
print("A área do círculo: {:.2f}".format(area)) |
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
raio = float(input('Entre com o valor do raio, para obter a circuferência do círculo: ')) | |
circunferencia = 2 * 3.14 * raio | |
print("A circuferência do círculo: {:.2f}".format(circunferencia)) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="[Efeito de maquina de escrever em JavaScript]"> | |
<meta charset="utf-8"> | |
<title>Máquina de escrever</title> | |
<script type="text/javascript"> | |
window.onload = function(){ | |
var txtTitulo = 'Francisco Chaves. Tecnologia com bits codificados.'; | |
var txt1 = document.getElementById("titulo"); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="[Realiza a verificação das vogais e consoantes na palavra]"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Separa Palavra - Vogais e Consoantes</title> | |
<script> | |
window.onload = function(){ |
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
<!-- Fonte: http://thecodeplayer.com/walkthrough/matrix-rain-animation-html5-canvas-javascript --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="[Efeito Matrix]"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Matrix</title> | |
<style type="text/css"> |
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
/* | |
Fonte: | |
https://social.msdn.microsoft.com/Forums/pt-BR/1dbe81e6-c063-4ae5-ae1d-5643fb4b0e62/validar-cpf-em-c?forum=vscsharppt | |
https://forum.imasters.com.br/topic/140772-resolvido-validar-cpf/ | |
*/ | |
public static class ValidaCPF | |
{ | |
public static bool isCPF(string valor) | |
{ |
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
/* | |
* Fonte: https://www.devmedia.com.br/validar-cpf-com-javascript/23916 (Em Português) | |
* https://forum.imasters.com.br/topic/140772-resolvido-validar-cpf/ (Em Português) | |
* | |
* Função adaptada por Francisco Chaves <[email protected]> | |
* | |
* CPF correto retorna true, senão false. | |
*/ | |
function verifyCPF(cpf) { |