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
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '******' |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
/***********************************************/ | |
func Funcao_Modelo(n1, n2 int) int { |
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
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '#####'; | |
flush privileges; |
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
class Matricula { | |
constructor(nome, quantidadeFaltas, notas) { | |
this.nome = nome; | |
this.quantidadeFaltas = quantidadeFaltas; | |
this.notas = notas; | |
} | |
calcularMedia() { | |
let media = this.notas.reduce((nota, i) => { | |
return nota + 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
CREATE TABLE IF NOT EXISTS 'DHTube', 'video' ( | |
idVideo INT(11), | |
Usuario_idUsuario INT(11), | |
titulo VARCHAR(100), | |
descricao TEXT, | |
tamanho DOUBLE, | |
nomeArquivo VARCHAR(100), | |
duracao DOUBLE, | |
imagem VARCHAR(100), | |
qtdReproducoes INT(11), |
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
let lista_de_pratos = ["pipoca", "macarrão", "carne", "feijão", "brigadeiro"]; | |
function entrada(item, time) { | |
if (lista_de_pratos.includes(item)) { | |
if (item == 'pipoca') { | |
if (time >= 10 && time < 20) { | |
if(time >= 11 && time < 20 ) { | |
console.log('CUIDADO PRATO MUITO QUENTE!!!!'); | |
} | |
console.log('prato pronto bom apetite') |
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
!true = false / !false = true / !!false = false / !!true = true / !1 = true / !!1 = false / !0 = false / !!0 = true / !!"" = false | |
let x = 5 ; | |
let y = 9; | |
x < 10 && x!==5 = false | |
x>9 || x===5 = true | |
!(x===y) = true |
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
const adicionar = (num1, num2) => { | |
const resposta = (num1 + num2); | |
console.log(`A operação de adição envolvendo os valores ${num1} e ${num2} é ${resposta}`); | |
return resposta; | |
}; | |
const subtracao = (num1, num2) => { | |
const resposta = (num1 - num2); | |
console.log(`A operação de subtração envolvendo os valores ${num1} e ${num2} é ${resposta}`); | |
return resposta; | |
}; |
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
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="./css/bootstrap.min.css"> | |
<link rel="stylesheet" href="./css/style.css"> | |
<title>Lista de Carros</title> | |
</head> |
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
// EXJ1.JS | |
const mensagem = "Olá Mundo"; | |
console.log(mensagem); // "Olá Mundo" | |
// EXJ2.JS | |
const nome = "Renan Augusto"; | |
const idade = 33; | |
const usuarioAtivo = true? "Sim": "Não"; | |
console.log(`Meu nome completo é ${nome}, tenho ${idade} anos de idade`); |
NewerOlder