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
# Arquivo com as Variaveis | |
variable "project_id"{ | |
type = string | |
default = "miyake-tech" | |
} | |
variable "default_region"{ | |
type = string | |
default = "us-central1" |
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
# Aqui vai as infos do provider | |
provider "google" { | |
version = "3.5.0" | |
credentials = file(var.credentials_location) # coloque o caminho completo para o arquivo de credenciais | |
project = var.project_id # Coloque aqui o nome de seu projeto | |
region = var.default_region | |
zone = var.default_zone | |
} |
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
# Funções para usar e retornar os dados necessários | |
from gpiozero import MotionSensor | |
import Adafruit_DHT | |
# from datetime import datetime | |
import time | |
import RPi.GPIO as gpio | |
gpio.setmode(gpio.BCM) | |
gpio.setup(4, gpio.IN) |
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
from google.cloud import pubsub_v1 | |
import datetime | |
import json | |
import sensorData | |
import time | |
project_id = "miyake-tech" # Coloque aqui seu ID de projeto | |
topic_name = "my-topic" # Entre com o nome do topico criado | |
publisher = pubsub_v1.PublisherClient() |
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
version: "3.7" | |
# Declaração dos serviços. | |
services: | |
# Configuração do container do Postgres. | |
pgsql-metabase-docker: | |
# Nome da imagem a ser buscada. | |
image: postgres | |
# Permite escolher reiniciar caso o serviço pare. | |
restart: always | |
# Especificação do expose das portas. |
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
http://www.oreilly.com/data/free/files/2014-data-science-salary-survey.pdf | |
http://www.oreilly.com/data/free/files/2015-data-science-salary-survey.pdf | |
http://www.oreilly.com/data/free/files/Data_Analytics_in_Sports.pdf | |
http://www.oreilly.com/data/free/files/advancing-procurement-analytics.pdf | |
http://www.oreilly.com/data/free/files/ai-and-medicine.pdf | |
http://www.oreilly.com/data/free/files/analyzing-data-in-the-internet-of-things.pdf | |
http://www.oreilly.com/data/free/files/analyzing-the-analyzers.pdf | |
http://www.oreilly.com/data/free/files/architecting-data-lakes.pdf | |
http://www.oreilly.com/data/free/files/being-a-data-skeptic.pdf | |
http://www.oreilly.com/data/free/files/big-data-analytics-emerging-architecture.pdf |
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
# Este é um arquivo de tutorial mostrando com a linguagem yaml funciona | |
# Um resumo dos elementos básicos do Yaml | |
# Para comentários basta usar o caractere (#). | |
# Yaml não permite | |
# multiplas linhas em comentário. | |
# É importante a indentação quando se cria um objeto com estruturas | |
# Vários documentos com fluxos únicos são separados por 3 hífens (---) no inicio e três pontos no fim (...). | |
#Doc 1 | |
--- # Start |