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
<?php | |
//draw.io -- banco | |
class PostgreSQL { | |
private $connection; | |
private $errorMessage = "<script type='text/javascript'>alert('Oops! Algo de errado não está correto.')</script>"; | |
private $result; | |
private $queryCount; | |
/*Estabelece a conexão com o banco através de um vetor*/ |
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 <stdlib.h> | |
#include <conio.c> | |
#include <conio.h> | |
#include <windows.h> | |
#include <string.h> | |
#define f 1 | |
#define fc 9 | |
#define fca | |
#define qtdetxt 40 |
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
DROP FUNCTION IF EXISTS GetTableContent(INTEGER); | |
DROP TABLE IF EXISTS registro; | |
DROP TABLE IF EXISTS permite_cena; | |
DROP TABLE IF EXISTS cena; | |
DROP TABLE IF EXISTS agendamento; | |
DROP TABLE IF EXISTS rotina; | |
DROP TABLE IF EXISTS permissao; | |
DROP TABLE IF EXISTS alerta; | |
DROP TABLE IF EXISTS controle; | |
DROP TABLE IF EXISTS ambiente; |
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
//conections | |
//const int LM35 = 0; | |
//const int TEMPERATURE_VALIDATION[2] = {2, 3}; | |
//statements | |
const int LED = 1; | |
const int T_LM35 = 2; | |
const int LED_ON = 1; | |
const int LED_OFF = 0; |
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 java.sql.*; | |
import javax.swing.*; | |
import java.util.*; | |
public class PostgreSQL{ | |
private int _code; | |
private String _type; | |
private String[] database = {"postgres", "sqladmin", "org.postgresql.Driver", "jdbc:postgresql://localhost:5432/banco73b2017"}; | |
private Connection _pgsql; |
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
INSERT INTO nivel_acesso VALUES(DEFAULT, 'Administrador'); | |
INSERT INTO nivel_acesso VALUES(DEFAULT, 'Moderador'); | |
INSERT INTO nivel_acesso VALUES(DEFAULT, 'Usuário'); | |
INSERT INTO nivel_acesso VALUES(DEFAULT, 'Visitante'); | |
INSERT INTO familia VALUES(DEFAULT, 'Alunos TCC', 'CTI - "Profº Isaac Portal Roldán"'); | |
INSERT INTO familia VALUES(DEFAULT, 'Santos', 'Residência Bauru - Jd. Bela Vista'); | |
INSERT INTO grupo VALUES(DEFAULT, 1, 'Admin'); | |
INSERT INTO grupo VALUES(DEFAULT, 1, 'Gabriel'); | |
INSERT INTO grupo VALUES(DEFAULT, 1, 'Gisele'); | |
INSERT INTO grupo VALUES(DEFAULT, 1, 'Caio'); |
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
//int devs[] = {2, 3, 5, 6, 9, 10, 4}; | |
int devs[] = {0, 6, 10, 9, 3, 5, 4, 0, 2}; | |
int count = (sizeof(devs) / sizeof(int)); | |
#include "DHT.h" | |
int DHTPIN = 11; | |
int DHTTYPE = DHT22; |
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
//int devs[] = {2, 3, 5, 6, 9, 10, 4}; | |
int devs[] = {0, 6, 10, 9, 3, 5, 4, 0, 2}; | |
int count = (sizeof(devs) / sizeof(int)); | |
#include "DHT.h" | |
int DHTPIN = 11; | |
int DHTTYPE = DHT22; |
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
DROP FUNCTION IF EXISTS GetTableContent(INTEGER); | |
DROP TABLE IF EXISTS registro; | |
DROP TABLE IF EXISTS permite_cena; | |
DROP TABLE IF EXISTS agendamento; | |
DROP TABLE IF EXISTS rotina; | |
DROP TABLE IF EXISTS cena; | |
DROP TABLE IF EXISTS permissao; | |
DROP TABLE IF EXISTS alerta; | |
DROP TABLE IF EXISTS controle; | |
DROP TABLE IF EXISTS ambiente; |
OlderNewer