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
| blink: 400 | |
| blink: 749 | |
| main: 754 | |
| blink: 1099 | |
| blink: 1448 | |
| main: 1504 | |
| blink: 1798 | |
| blink: 2147 | |
| main: 2254 | |
| blink: 2497 |
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 <FS.h> //this needs to be first, or it all crashes and burns... | |
| #include <Wire.h> | |
| #include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino | |
| #include <DNSServer.h> | |
| #include <ESP8266WebServer.h> | |
| #include <WiFiManager.h> //https://github.com/tzapu/WiFiManager | |
| #include <ArduinoJson.h> //https://github.com/bblanchon/ArduinoJson | |
| // MQTT Library | |
| #include <PubSubClient.h> |
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 <FS.h> //this needs to be first, or it all crashes and burns... | |
| #include <Wire.h> | |
| #include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino | |
| #include <DNSServer.h> | |
| #include <ESP8266WebServer.h> | |
| #include <WiFiManager.h> //https://github.com/tzapu/WiFiManager | |
| #include <ArduinoJson.h> //https://github.com/bblanchon/ArduinoJson | |
| // MQTT Library | |
| #include <PubSubClient.h> |
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 <PubSubClient.h> | |
| // Update these with values suitable for your network. | |
| const char* ssid = ""; | |
| const char* password = ""; | |
| const char* mqtt_server = ""; | |
| const int mqtt_port = ; |
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
| [alias] | |
| lg = log --graph --pretty=format:'%Cred%h%Creset %C(yellow)%an%d%Creset %s %Cgreen(%cr)%Creset' --date=relative | |
| st = status | |
| br = branch | |
| co = checkout |
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
| var ws = new WebSocket("ws://HOST"); | |
| // Display message to confirm a connection has been made. | |
| ws.onopen = function() { | |
| console.log('open'); | |
| }; | |
| ws.onmessage = function (packet) { | |
| console.log(packet.data); | |
| }; |
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
| <html> | |
| <head> | |
| <link href='https://fonts.googleapis.com/css?family=Titillium+Web:400,700' rel='stylesheet' type='text/css'> | |
| <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
| <style> | |
| </style> | |
| </head> | |
| <body> |
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
| <html> | |
| <head> | |
| <link href='https://fonts.googleapis.com/css?family=Titillium+Web:400,700' rel='stylesheet' type='text/css'> | |
| <style> | |
| body { | |
| background-color: #ccc; | |
| padding: 0; | |
| margin: 0; | |
| font-family: 'Titillium Web', sans-serif; | |
| color: #fff; |
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
| <html> | |
| <head> | |
| <title>Alberti Cipher Disk</title> | |
| <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
| </head> | |
| <body> | |
| <div id="chart"></div> | |
| <script> | |
| var width = 300, |
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" | |
| import "encoding/json" | |
| var alphabetsJSON = []byte(`[{"Name":"I","Side":{"a":"XGBRCJSQIEFTVHYAPOWZNULKMD","b":"REHKVMQTFSJNXBWZGDOALCUPIY"}},{"Name":"II","Side":{"a":"SUBWDVRFMKHPOLZCGXINQAJEYT","b":"YOBEZALKIHRCUFVQWTSMPXGNJD"}}, | |
| {"Name":"III","Side":{"a":"VIWNXUPTCRHJMBZYAKDOLQSEGF","b":"DUSYOCQGZALBKFWHJIVEMPXRNT"}},{"Name":"IV","Side":{"a":"DASQOPELGKUVBTWYRCINHMXJFZ","b":"ZFTIKGOPJLYUDHNMAWVSRECXBQ"}},{"Name":"V","Side":{"a":"OSADNJLUXCRQZTHEVBGFYIPKWM","b":"REHKVMQTFSJNXBWZGDOALCUPIY"}},{"Name":"VI","Side":{"a":"djrifhdhdhdbej","b":"igfjdhfjdj"}}]`) | |
| func main () { |