Skip to content

Instantly share code, notes, and snippets.

@wireddude
wireddude / life.html
Created December 21, 2024 01:54
life.html
<!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;
### 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:
@wireddude
wireddude / iot-plant-sensor-rocketchat.py
Created January 26, 2016 03:47
uses a raspberrypi and plant sensor to determine when my house plant needs water. When it does it sends a notification to rocket.chat to notify me.
#!/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:
@wireddude
wireddude / log-ios-battery-2-thingspeak.py
Created December 18, 2015 23:08
log-ios-battery-2-thingspeak.py
# 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")