Skip to content

Instantly share code, notes, and snippets.

View alvarowolfx's full-sized avatar
🏠
Working from home

Alvaro Viebrantz alvarowolfx

🏠
Working from home
View GitHub Profile
@alvarowolfx
alvarowolfx / README.md
Created April 23, 2014 19:19
andamentos x cidade

README is empty

@alvarowolfx
alvarowolfx / README.md
Created April 23, 2014 19:24
andamentos x tema

README is empty

@alvarowolfx
alvarowolfx / README.md
Created April 23, 2014 19:28
andamentos x tema

README is empty

@alvarowolfx
alvarowolfx / Animal.java
Last active May 14, 2016 22:55
Exercício Zoológico - Modelagem
package br.com.aviebrantz.zoo;
/**
* Created by alvaroviebrantz on 14/05/16.
*/
public abstract class Animal{
private Integer identificacao;
private String nome;
private Porte porte;
@alvarowolfx
alvarowolfx / RfRemoteEsp8266.ino
Created April 18, 2017 03:50
Código utilizado na integração do Home Assistant e o acionamento direto de botões um controle remoto via ESP8266 via HTTP
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <ESP8266WebServer.h>
// Configurações WiFi
const char* ssid = "sua wifi";
const char* password = "sua senha da wifi";
//Porta para escutar as requisições
@alvarowolfx
alvarowolfx / main.go
Last active September 17, 2018 00:14
Onion + Golang + Http blink
package main
import (
"encoding/json"
"fmt"
"html/template"
"log"
"net/http"
"strings"
@alvarowolfx
alvarowolfx / main.go
Created September 11, 2017 00:59
Hello World Golang
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello World")
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@alvarowolfx
alvarowolfx / init.js
Created October 15, 2017 22:30
Weather station code
load('api_config.js');
load('api_mqtt.js');
load('api_timer.js');
load('api_dht.js');
load('api_config.js');
load('api_gpio.js');
load('api_mqtt.js');
load('api_net.js');
load('api_sys.js');
load('api_timer.js');
@alvarowolfx
alvarowolfx / index.js
Last active August 1, 2018 14:41
Weather station function trigger
const functions = require('firebase-functions');
const admin = require('firebase-admin');
const bigquery = require('@google-cloud/bigquery')();
const cors = require('cors')({ origin: true });
admin.initializeApp(functions.config().firebase);
const db = admin.database();
/**