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
| { | |
| "0": 0x7E, | |
| "1": 0x30, | |
| "2": 0x6D, | |
| "3": 0x79, | |
| "4": 0x33, | |
| "5": 0x5B, | |
| "6": 0x5F, | |
| "7": 0x70, | |
| "8": 0x7F, |
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
| - name: add docker repo key | |
| apt_key: id=2C52609D url=https://apt.dockerproject.org/gpg | |
| tags: docker | |
| - name: Add Docker repo | |
| apt_repository: repo='deb https://apt.dockerproject.org/repo ubuntu-trusty main' update_cache=no | |
| tags: docker | |
| - name: Update cache | |
| apt: update_cache=yes |
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 <ESP8266WiFi.h> | |
| #include <WiFiClient.h> | |
| #include <ESP8266WebServer.h> | |
| #include <ESP8266mDNS.h> | |
| #include <time.h> | |
| const char* ssid = "co2_sensor"; | |
| const char* password = "1qazxsw2"; | |
| ESP8266WebServer server(80); |
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
| package main | |
| import ( | |
| "flag" | |
| "github.com/streadway/amqp" | |
| "log" | |
| "time" | |
| ) | |
| var amqpUri = flag.String("r", "amqp://guest:[email protected]/", "RabbitMQ URI") |
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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "time" | |
| ) | |
| func main() { | |
| queue := NewQueue("amqp://guest:guest@localhost:5672/", "hello") |