Skip to content

Instantly share code, notes, and snippets.

#include <FS.h> //this needs to be first, or it all crashes and burns...
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
//needed for library
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h> //https://github.com/tzapu/WiFiManager
#include <ArduinoJson.h> //https://github.com/bblanchon/ArduinoJson
#include <ESP8266WiFi.h>
//this sketch duplicated the flow that WiFIManager or any other connection manager would take
//first try to connect, if it fails spin up an AP, get some credentials from user, connect again
//then spin everything down
void setup() {
Serial.begin(115200);
Serial.println();
Serial.println();
@tzapu
tzapu / index.html
Created December 8, 2016 12:24
meteore-desktop-system-notifications
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Background</title>
</head>
   <body>
<script>
require('./renderer.js')
</script>
@tzapu
tzapu / faucet.eth
Created July 12, 2017 08:40
rinkeby eth faucet test
0x70B70196696a04E5DbE49883425A0adEa8d2fa84
0xB274E703527B34fDD4cFf3C565616Ce43264F668
@tzapu
tzapu / parity-responses.log
Created December 6, 2017 05:55
trace log of parity no longer returning filtered pending transactions
This file has been truncated, but you can view the full file.
2017-12-06 05:34:58 UTC TRACE rpc Request: {"jsonrpc":"2.0","method":"eth_getFilterChanges","params":["0x0"],"id":3235237269844622367}.
did:muport:QmS6oWgLt36zQ62PFkkuL5TQaeg3j61fcooMKCCUcAZ9Vg
@tzapu
tzapu / demo-3box-donation.md
Created January 14, 2019 22:34
Demo ethereum donation page
@tzapu
tzapu / 3box-demo-instructions.md
Last active January 14, 2019 22:39
Demo instructions to verify the ownership of the White Hat Group's Ethereum address

This is part of a demo showcasing the power and flexibility of the integration between the Alethio's Ethstats block explorer and 3Box's Social Profiles

Ideally this file would contain instructions about what happened, how to verify the validity of the claims and what could people expect to happen next.

Some reference urls that could be used/posted here:

// CPU 80MHZ, FLASH 4M/1M
/*
*** Sample using esp-01, D16 is connected to RST
*** If DHT22 is powered by a gpio( VCC of DHT22 is connected to a gpio) and OUTPUT of DHT22 is connected to D2, boot will fail.
*** Power off ----> D2 is in LOW( == DHT22 is in LOW) ==> SDIO boot mode.
Temperature and humidity values are each read out the results of the last measurement.
For real-time data that need continuous read twice, we recommend repeatedly to read sensors,
and each read sensor interval is greater than 2 seconds to obtain accuratethe data.