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
| #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"; |
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
| #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 |
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
| #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 |
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
| #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 |
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
| 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) |
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
| % 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) | |
| % ========================================== |
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
| (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); |
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
| (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() |
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
| /* | |
| * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license | |
| */ | |
| package com.mycompany.calcula; | |
| import java.util.Scanner; | |
| /** | |
| * |
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
| // 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; |
NewerOlder