This file contains 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
print("hello") |
This file contains 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
import time | |
from requests import get | |
import requests | |
import json | |
import os | |
import subprocess | |
import digitalio | |
import board | |
from PIL import Image, ImageDraw, ImageFont | |
import adafruit_rgb_display.st7789 as st7789 |
This file contains 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
import json | |
import requests | |
from requests import get | |
import time | |
import pytz | |
import datetime | |
tz = pytz.timezone('America/Los_Angeles') | |
while True: |
This file contains 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
import numpy as np | |
import cv2 | |
faceCascade = cv2.CascadeClassifier('Cascades/haarcascade_frontalface_default.xml') | |
cap = cv2.VideoCapture(0) | |
cap.set(3,640) # set Width | |
cap.set(4,480) # set Height | |
font = cv2.FONT_HERSHEY_SIMPLEX |
This file contains 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
import numpy as np | |
import cv2 | |
faceCascade = cv2.CascadeClassifier('Cascades/haarcascade_frontalface_default.xml') | |
cap = cv2.VideoCapture(0) | |
cap.set(3,640) # set Width | |
cap.set(4,480) # set Height | |
font = cv2.FONT_HERSHEY_SIMPLEX |
This file contains 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/env python3 | |
import json | |
import requests | |
import time | |
import sys | |
from colorsys import hsv_to_rgb | |
from PIL import Image, ImageDraw, ImageFont | |
from unicornhatmini import UnicornHATMini |
This file contains 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 twitch import TwitchClient | |
import json | |
import time | |
client = TwitchClient('your_ids_here') | |
followed = client.streams.get_followed('live', 100, 0) | |
followed_list_one=[]; | |
followed_list_two=[]; | |
def Diff(li1, li2): #compare algorithm |
This file contains 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
import time | |
import requests | |
import RPi.GPIO as GPIO | |
from gpiozero import DistanceSensor | |
from time import sleep | |
sensor = DistanceSensor(echo=17, trigger=4) | |
none=0 | |
GPIO.setmode(GPIO.BCM) |
This file contains 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
import time | |
import board | |
import neopixel | |
from digitalio import DigitalInOut, Direction, Pull | |
switch = DigitalInOut(board.D3) | |
switch.direction = Direction.INPUT | |
switch.pull = Pull.UP | |
pixel_pin = board.D2 |