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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Game of Life</title> | |
<style> | |
body { | |
display: flex; | |
justify-content: center; |
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
### Keybase proof | |
I hereby claim: | |
* I am wireddude on github. | |
* I am dmkanter (https://keybase.io/dmkanter) on keybase. | |
* I have a public key ASAq06efGPZaW8_Z3CW9FIj5v3OitC4jK6FdL0x07cyHMgo | |
To claim this, I am signing this object: |
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
#!/usr/bin/python | |
import RPi.GPIO as GPIO | |
import time | |
import os | |
GPIO.setmode(GPIO.BCM) | |
# set up the GPIO channels - one input and one output | |
GPIO.setup(23, GPIO.IN) | |
# input from pin 23 | |
while 1: |
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
# from ios workflow app, send battery percentage to clipboard before executing this | |
import requests | |
import clipboard | |
import webbrowser | |
battery = clipboard.get() | |
requests.post('https://api.thingspeak.com/update?key=[APIKEY]&field5='+battery) | |
webbrowser.open("safari-http://thingspeak.com/channels/[CHANNEL_ID]/private_show") | |