Skip to content

Instantly share code, notes, and snippets.

View dieguesmosken's full-sized avatar
🖥️
</Coffee>

Matheus Mösken Diegues dieguesmosken

🖥️
</Coffee>
View GitHub Profile
@dieguesmosken
dieguesmosken / final gcode.gcode
Created May 4, 2024 00:13
Gcode Impressora 3D
G91 ;Relative positionning
G1 E-2 F2700 ;Retract a bit
G1 E-2 Z0.2 F2400 ;Retract and raise Z
G1 X5 Y5 F3000 ;Wipe out
G1 Z10 ;Raise Z more
G90 ;Absolute positionning
G1 X0 Y0 ;Present print
M106 S0 ;Turn-off fan
M104 S0 ;Turn-off hotend
@dieguesmosken
dieguesmosken / Perceptron.cpp
Created August 29, 2023 00:40
Perceptron simples escrito em C++
#include "Perceptron.h"
Perceptron::Perceptron(float w0, float w1, float w2, float limiar) {
this->w0 = w0;
this->w1 = w1;
this->w2 = w2;
this->limiar = limiar;
}
float Perceptron::calcularSaida(float x0, float x1, float x2) {
@dieguesmosken
dieguesmosken / relogio.html
Created June 16, 2023 00:12
relogio em html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Relogio Analogico</title>
<style>
</style>
</head>
@dieguesmosken
dieguesmosken / relogio.py
Created June 15, 2023 23:56
relogio escrito em python
import time
def zero(x):
if x < 10:
x = '0' + str(x)
return str(x)
while True:
novaHora = time.localtime()
hora = novaHora.tm_hour
@dieguesmosken
dieguesmosken / codigo_aula19__01-06.ipynb
Created June 5, 2023 22:30
Codigo_Aula19__01-06.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dieguesmosken
dieguesmosken / codigo_aula20__02-06.ipynb
Created June 5, 2023 22:26
Codigo_Aula20__02-06.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dieguesmosken
dieguesmosken / codigo_aula18__31-05.ipynb
Created June 1, 2023 22:44
Codigo_Aula18__31-05.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dieguesmosken
dieguesmosken / codigo_aula16__29-05.ipynb
Created May 30, 2023 22:00
Codigo_Aula16__29-05.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dieguesmosken
dieguesmosken / codigo_aula12__23-05.ipynb
Created May 29, 2023 23:25
Codigo_Aula12__23-05.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
function gerarCor() {
for (let i = 0; i < cell.length; i++) {
const letras = '0123456789ABCDEF';
let cor = '#';
for (let i = 0; i < 6; i++) {
cor += letras[Math.floor(Math.random() * 16)];
}
Colors.push(cor);
console.log(cor);
console.log("CorBG: " + Colors.length);