I hereby claim:
- I am johnosullivan on github.
- I am jnosullivan (https://keybase.io/jnosullivan) on keybase.
- I have a public key whose fingerprint is 103F CAD4 5EFE AC72 2D0F 0232 80FB FECE E3BA E431
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/*! | |
* Bootstrap v3.3.7 (http://getbootstrap.com) | |
* Copyright 2011-2016 Twitter, Inc. | |
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |
*//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-si |
#!/usr/bin/lua | |
--- Imports the botlib libraries that support this demo. | |
lib = require("botlibsensor") | |
GPIO = require("botlibgpio") | |
--- Creates a simple function to sleep before each sensor read. | |
function sleep(n) | |
os.execute("sleep " .. tonumber(n)) | |
end | |
--- Configures the hardware. | |
sensor = lib.new("Range#1","HC-SR04",18,24) |
TCPClient client; | |
char buffer[1024]; | |
char * http_get(char const * hostname, int port, String path) { | |
// Send Request | |
if (client.connect(hostname, port)) { | |
client.print("GET "); | |
client.print(path); | |
client.print(" HTTP/1.1\r\n"); |