Skip to content

Instantly share code, notes, and snippets.

View zeth's full-sized avatar

Zeth zeth

View GitHub Profile
@zeth
zeth / mkvcard.py
Created February 22, 2017 13:48
Example of how to Make a Vcard qrcode using the qrcode module
#!/usr/bin/python3
# By Zeth
# Website http://zeth.net
# Twitter: zeth0
"""Make a Vcard qrcode using the qrcode module."""
import qrcode
FILENAME = "output.png"
@zeth
zeth / gardenspy.py
Last active January 15, 2016 23:20
World's simpliest CCTV system
#/usr/bin/python
"""Spy system written in 60 seconds(ish)."""
import picamera
from datetime import datetime
from time import sleep
DELAY = 60
@zeth
zeth / error.py
Created September 25, 2015 19:51
Running kevent example on the RPi2
pi@raspberrypi ~/kiventproject/kivent/examples/1_empty_kivent_app $ python main.py
[INFO ] [Logger ] Record log in /home/pi/.kivy/logs/kivy_15-09-25_21.txt
[INFO ] [Kivy ] v1.9.1-dev
[INFO ] [Python ] v2.7.3 (default, Mar 18 2014, 05:13:23)
[GCC 4.6.3]
[INFO ] [Factory ] 177 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_gif, img_pygame, img_pil (img_ffpyplayer ignored)
[INFO ] [Window ] Provider: egl_rpi
[INFO ] [GL ] OpenGL version <OpenGL ES 2.0>
[INFO ] [GL ] OpenGL vendor <Broadcom>
#!/usr/bin/python3
"""The once and future King."""
import math
import sys
print (
chr(int(sys.version[0])**3*3+3*3)
+ sys.exit.__doc__[0].lower()