Skip to content

Instantly share code, notes, and snippets.

@akdyounger
akdyounger / Delta
Created October 19, 2015 00:36
Delta
import time
import os
import RPi.GPIO as GPIO
import subprocess
import re
import tweepy
import datetime
import math
import sys
@akdyounger
akdyounger / airandlight.py
Last active December 22, 2015 23:19
Script that uses an ADC to convert analog signals from a temperature sensor and light sensor into digital values.
import time
import os
import RPi.GPIO as GPIO
# sets up GPIO pins
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
DEBUG = 0
@akdyounger
akdyounger / gist:6545821
Created September 13, 2013 01:11
Basic tweeting code.
import sys
import tweepy
CONSUMER_KEY = 'Cant show this part'
CONSUMER_SECRET = 'Cant show this part'
ACCESS_KEY = 'Cant show this part'
ACCESS_SECRET = 'Cant show this part'
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)