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
public class Comentario { | |
private Long id; | |
private String descricao; | |
private LocalDate dataEnvio; | |
} |
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
spring.application.name=ordem-servico-api | |
#database configuration | |
spring.datasource.url = jdbc:mysql://localhost:3306/ordem-servico-api?createDatabaseIfNotExist=true | |
spring.datasource.username = root | |
spring.datasource.password = bancodedados | |
spring.jpa.hibernate.ddl-auto = update | |
#exibir consultas realizadas |
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
# Example configuration.yaml entry | |
mqtt: | |
sensor: | |
- name: "Nova Temperatura" | |
state_topic: "ifpr/sala/temperatura" | |
unique_id: ifpr_sala_temperatura | |
unit_of_measurement: "°C" | |
qos: 0 | |
- name: "Nova Temperatura 2" |
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 cidades ( | |
id INT PRIMARY KEY, | |
nome VARCHAR(100), | |
estado VARCHAR(50) | |
); | |
CREATE TABLE atrativos ( | |
id INT PRIMARY KEY, | |
nome VARCHAR(200), | |
tipo VARCHAR(50), |
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
@import url('https://fonts.googleapis.com/css2?family=Catamaran:[email protected]&display=swap'); | |
/* Reset CSS */ | |
*{ | |
margin: 0; | |
padding: 0; | |
} |
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
<?php | |
$usuario = "root"; | |
$senha = "bancodedados"; | |
$url_conexao = "mysql:host=localhost;dbname=db_contatos"; | |
$conexao = new PDO($url_conexao, $usuario, $senha); | |
$conexao->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
try { |
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
/* Unidades Absolutas */ | |
div { | |
width: 300px; | |
height: 2cm; | |
} | |
/* Unidades Relativas */ | |
p { | |
font-size: 1.5em; | |
margin: 10%; |
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
{"count":1292,"next":null,"previous":null,"results":[{"name":"bulbasaur","url":"https://pokeapi.co/api/v2/pokemon/1/"},{"name":"ivysaur","url":"https://pokeapi.co/api/v2/pokemon/2/"},{"name":"venusaur","url":"https://pokeapi.co/api/v2/pokemon/3/"},{"name":"charmander","url":"https://pokeapi.co/api/v2/pokemon/4/"},{"name":"charmeleon","url":"https://pokeapi.co/api/v2/pokemon/5/"},{"name":"charizard","url":"https://pokeapi.co/api/v2/pokemon/6/"},{"name":"squirtle","url":"https://pokeapi.co/api/v2/pokemon/7/"},{"name":"wartortle","url":"https://pokeapi.co/api/v2/pokemon/8/"},{"name":"blastoise","url":"https://pokeapi.co/api/v2/pokemon/9/"},{"name":"caterpie","url":"https://pokeapi.co/api/v2/pokemon/10/"},{"name":"metapod","url":"https://pokeapi.co/api/v2/pokemon/11/"},{"name":"butterfree","url":"https://pokeapi.co/api/v2/pokemon/12/"},{"name":"weedle","url":"https://pokeapi.co/api/v2/pokemon/13/"},{"name":"kakuna","url":"https://pokeapi.co/api/v2/pokemon/14/"},{"name":"beedrill","url":"https://pokeapi.co/api/v2/ |
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
<?php | |
$ts = time(); | |
$publicKey = 'ebb5d43c10d70a147fb24321ce1c2ae9'; | |
$privateKey = 'a9ae9afbfb9e68792144677e2e6f5a75fef8a495'; | |
$hash = md5($ts . $privateKey . $publicKey); | |
$offset = rand(0, 100) * 20; |
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
// ----- Bibliotecas ----- | |
#include <ESP8266WiFi.h> | |
#include <WebServer.h> | |
// ----- Constantes ----- | |
const int SENSOR_UMIDADE = 0; | |
const int RELE = 4; | |
const char* ssid = "Nuestra Casa"; /* Add your router's SSID */ |