Skip to content

Instantly share code, notes, and snippets.

View je4npw's full-sized avatar
🐇
SysArch GITER Informática

Jean Wick 4 je4npw

🐇
SysArch GITER Informática
View GitHub Profile
@je4npw
je4npw / atividade4.c
Created April 29, 2026 14:34
Relatório de aula prática - Sistemas Embarcados - 7º semestre - Ciência da Computação - Aluno Jean Patrick Wilhvock
#include <WiFi.h>
#include <LiquidCrystal_I2C.h>
#include "time.h"
// Configurações do Wi-Fi do Wokwi
const char* ssid = "Wokwi-GUEST";
const char* password = "";
// Configurações do Servidor NTP
const char* ntpServer = "pool.ntp.org";
@je4npw
je4npw / atividade3.c
Created April 28, 2026 21:05
Relatório de aula prática - Sistemas Embarcados - 7º semestre - Ciência da Computação - Aluno Jean Patrick Wilhvock
#include <stdio.h>
#include <stdbool.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include "driver/ledc.h"
#define LED_PIN GPIO_NUM_2
@je4npw
je4npw / atividade2.c
Created April 28, 2026 20:58
Relatório de aula prática - Sistemas Embarcados - 7º semestre - Ciência da Computação - Aluno Jean Patrick Wilhvock
#include <stdio.h>
#include <stdbool.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#define LED_PIN GPIO_NUM_2
#define BTN_PIN GPIO_NUM_4
@je4npw
je4npw / atividade1.c
Created April 28, 2026 20:51
Relatório de aula prática - Sistemas Embarcados - 7º semestre - Ciência da Computação - Aluno Jean Patrick Wilhvock
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#define LED_PIN GPIO_NUM_2
#define BTN_PIN GPIO_NUM_4
volatile int tempo_delay_ms = 500;
// 500 ms ligado + 500 ms desligado = 1 Hz
@je4npw
je4npw / atividade2.py
Created April 14, 2026 13:57
Atividade 2: Rede Neural de Camada Única para Classificação Binária (Python)
import numpy as np
# Passo 1: Definição da função sigmoide e sua derivada
def sigmoid(x):
return 1 / (1 + np.exp(-x))
def sigmoid_derivative(x):
# x aqui já é a saída da sigmoide, então derivada = x * (1 - x)
return x * (1 - x)
@je4npw
je4npw / ativdade1.m
Created April 14, 2026 13:55
Roteiro U3 - Cálculo de Gorjeta (Procedural vs Lógica Nebulosa)
% Roteiro U3 - Cálculo de Gorjeta (Procedural vs Lógica Nebulosa)
clear; clc;
% --- Valores de teste ---
qualidade_comida = 8;
qualidade_servico = 6;
% ==========================================
% PARTE 1: Abordagem Procedural (if/else)
% ==========================================
@je4npw
je4npw / alboompro-downloader.js
Created July 18, 2025 12:22
Baixa as imagens de um álbum do alboompro pelo console do navegador
(async () => {
const delay = (ms) => new Promise(resolve => setTimeout(resolve, ms));
const downloadImage = (url, filename) => {
const a = document.createElement('a');
a.href = url;
a.download = filename || url.split('/').pop();
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
(async function(){
const UNFOLLOW_LIMIT = 800
const delay = (ms) => new Promise(_ => setTimeout(_, ms))
const findButton = (txt) => [...document.querySelectorAll("button").entries()].map(([pos, btn]) => btn).filter(btn => btn.innerText === txt)[0]
console.log("Start")
for (let i = 0; i < UNFOLLOW_LIMIT; i++) {
const $next = findButton("Seguindo")
if (!$next) { continue }
$next.scrollIntoViewIfNeeded()
@je4npw
je4npw / Calcula.java
Created October 26, 2024 18:42
Trabalho para portfólio de Programação Orientada a Objetos Unopar Ciências da Computação 4⁰ Semestre
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
*/
package com.mycompany.calcula;
import java.util.Scanner;
/**
*
@je4npw
je4npw / avl.cpp
Last active October 9, 2024 23:39
Algoritmo em C++ para relatório de aula prática ALGORITMOS E ESTRUTURA DE DADOS AVANÇADO Anhanguera
// Para compilar:
// g++ -o avl avl.cpp
// Para executar:
// chmod +x avl
// ./relatorio1
// retorna a saída das movimentações em nodes após os insert e remove na árvore avl
#include <iostream>
#include <algorithm>
using namespace std;