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
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 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
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '#####'; | |
flush privileges; |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
/***********************************************/ | |
func Funcao_Modelo(n1, n2 int) int { |
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
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '******' |
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
(function() { | |
// Função para clicar em um elemento, verificando se está desabilitado | |
function clickElement(element) { | |
if (element.classList.contains('farm_icon_disabled')) { | |
console.log("Elemento desabilitado, pulando..."); // Mensagem de log para depuração | |
return; // Sai da função se o elemento estiver desabilitado | |
} | |
element.click(); // Simula um clique no elemento | |
console.log("Clicou em um elemento farm_icon_b"); // Mensagem de log para depuração | |
} |
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
var scriptData = { | |
name: 'Barbs Finder', | |
version: 'v1.4.0', | |
author: 'RedAlert', | |
authorUrl: 'https://twscripts.ga/', | |
helpLink: 'https://forum.tribalwars.net/index.php?threads/barb-finder-with-filtering.285289/', | |
}; | |
// User Input | |
if (typeof DEBUG !== 'boolean') DEBUG = false; |
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
n1 = float(input("Insira o número: ")) | |
if n1 <= 1: | |
print(f"O número {n1} não é primo.") | |
else: | |
for i in range(2, int(n1**0.5) + 1): | |
if n1 % i == 0: | |
print(f"O número {n1} não é primo.") | |
break | |
else: |
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
limite = int(input("Digite o limite da sequência de Fibonacci: ")) | |
a, b = 0, 1 | |
while a <= limite: | |
print(a, end=" ") | |
a, b = b, a + b |
OlderNewer