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 */ |
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
programa | |
{ | |
inclua biblioteca Util | |
funcao inicio() | |
{ | |
inteiro lista[30] | |
inteiro num_elementos = Util.numero_elementos(lista) |
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
insert into Veiculo (codigo, fabricante, modelo, anoFabricacao, anoModelo, valor) | |
values (1, 'Fiat', 'Toro', 2020, 2020, 107000); | |
insert into Veiculo (codigo, fabricante, modelo, anoFabricacao, anoModelo, valor) | |
values (2, 'Ford', 'Fiesta', 2019, 2019, 42000); | |
insert into Veiculo (codigo, fabricante, modelo, anoFabricacao, anoModelo, valor) | |
values (3, 'Renault', 'Clio', 2013, 2013, 20000); |
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
package br.edu.ifpr.persistproject.repository; | |
import br.edu.ifpr.persistproject.connection.ConnectionFactory; | |
import br.edu.ifpr.persistproject.exception.DatabaseIntegrityException; | |
import br.edu.ifpr.persistproject.model.Seller; | |
import java.sql.*; | |
import java.text.SimpleDateFormat; | |
public class SellerRepository { |
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
package br.edu.ifpr.persistproject.repository; | |
import br.edu.ifpr.persistproject.connection.ConnectionFactory; | |
import br.edu.ifpr.persistproject.model.Seller; | |
import java.sql.*; | |
import java.text.SimpleDateFormat; | |
public class SellerRepository { |
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 SellerRepository { | |
private Connection conn; | |
private SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); | |
public SellerRepository(){ | |
ConnectionFactory connectionFactory = new ConnectionFactory(); | |
conn = connectionFactory.getConnection(); | |
} |
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 SellerRepository { | |
private Connection conn; | |
private SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); | |
public SellerRepository(){ | |
ConnectionFactory connectionFactory = new ConnectionFactory(); | |
conn = connectionFactory.getConnection(); | |
} |
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 SellerRepository { | |
private Connection conn; | |
public SellerRepository(){ | |
ConnectionFactory connectionFactory = new ConnectionFactory(); | |
conn = connectionFactory.getConnection(); | |
} | |
public List<Seller> getSellers(){ |
NewerOlder