Skip to content

Instantly share code, notes, and snippets.

@aitzol
aitzol / check_gpio.py
Created February 10, 2015 20:18
Python code to check any Raspberry Pi GPIO status
#!/usr/bin/env python
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
while True:
data = raw_input("Insert GPIO BCN number to check status (blank to quit): ")
if data == '':
break
try:
models.py
class TribualUserInTribe(models.Model):
user = models.ForeignKey(TribualUser)
tribe = models.ForeignKey(Tribe)
#Unique together
played = models.IntegerField(default=0)
elo = models.IntegerField(default=2000,db_index=True)
k = models.IntegerField(default=40)
win = models.IntegerField(default=0)

Keybase proof

I hereby claim:

  • I am aitzol on github.
  • I am aitzol (https://keybase.io/aitzol) on keybase.
  • I have a public key whose fingerprint is 0FC9 22CD 3D11 9F60 8406 A6A0 601C 27E9 829B 375A

To claim this, I am signing this object: