Uncaught (in promise) DOMException: Connection failed for unknown reason.
This file contains 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
{ | |
"slides":[ | |
{ | |
"id":0, | |
"content-url":"https://s3.whatever/rovercode/getting-conntected-tutorial/putting-in-batteries.md", | |
"actions":[ | |
{ | |
"id":0, | |
"type":"button", | |
"text":"Ok, let's go!", |
I hereby claim:
- I am aninternetof on github.
- I am bradyhurlburt (https://keybase.io/bradyhurlburt) on keybase.
- I have a public key ASAk3kbeThRppb9KDl7EXtSgDZ7bgZPAbpuTqeB0bPOp9Qo
To claim this, I am signing this object:
I hereby claim:
- I am aninternetof on github.
- I am bradyhurlburt (https://keybase.io/bradyhurlburt) on keybase.
- I have a public key ASAk3kbeThRppb9KDl7EXtSgDZ7bgZPAbpuTqeB0bPOp9Qo
To claim this, I am signing this object:
This file contains 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
#!/usr/bin/python | |
import websocket | |
import thread | |
import time | |
import json | |
def on_message(ws, message): | |
print message | |
def on_error(ws, error): |
This file contains 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
LEFT_EYE_LED_CURRENT=20 | |
LEFT_EYE_THRESHOLD=2175 | |
RIGHT_EYE_LED_CURRENT=20 | |
RIGHT_EYE_THRESHOLD=2605 |
This file contains 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
<div class="someclass" id="nameofyourid"> | |
Lorem ipsum | |
</div> | |
<h1 id="nameofanotherid"> An Awesome Section</h1> |
This file contains 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
import lib | |
# A not-great example | |
class MyLessGoodClass: | |
def do_something(self): | |
x = lib.get_thing() | |
return x + 1 | |
def do_another_thing(self): |
This file contains 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
def myfunc(thing): | |
return thing + 1 | |
myfunc(lib.get_thing()) |
This file contains 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
def myfunc(): | |
x = lib.get_thing() | |
return x+1 | |
myfunc() |
NewerOlder