Skip to content

Instantly share code, notes, and snippets.

View jtolio's full-sized avatar
🙃

JT Olio jtolio

🙃
View GitHub Profile
@jtolio
jtolio / gist:83a8cf059d496586709f
Last active August 29, 2015 14:22
Temporary fix for Go issue #10303 against Go 1.4.2
diff --git a/api/go1.4.txt b/api/go1.4.txt
index 08cb17f..9101909 100644
--- a/api/go1.4.txt
+++ b/api/go1.4.txt
@@ -389,6 +389,9 @@ pkg sync/atomic, method (*Value) Load() interface{}
pkg sync/atomic, method (*Value) Store(interface{})
pkg sync/atomic, type Value struct
+# Fixing Go issue 10303
+# This is absolutely the wrong place to put this. It shouldn't be in

Keybase proof

I hereby claim:

  • I am jtolds on github.
  • I am jtolds (https://keybase.io/jtolds) on keybase.
  • I have a public key whose fingerprint is 06D0 CD5B A856 7236 55B7 FE47 315F 4F83 B1B6 93C5

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am jtolio on github.
  • I am jtolds (https://keybase.io/jtolds) on keybase.
  • I have a public key whose fingerprint is 06D0 CD5B A856 7236 55B7 FE47 315F 4F83 B1B6 93C5

To claim this, I am signing this object:

@jtolio
jtolio / code.ino
Last active January 3, 2021 15:35
esp8266 dht22 sensor
#include <Adafruit_Sensor.h>
#include <DHT.h>
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
const char* WIFI_SSID = "<redacted>";
const char* WIFI_PASS = "<redacted>";
const char* POST_URL = "http://thermostat.lan:8081/sensor/";
const char* SENSOR_NAME = "bedroom";