Skip to content

Instantly share code, notes, and snippets.

View kscottz's full-sized avatar
💭
🐀 🐀 🐀 🐀 🐀 🐀

Katherine Scott kscottz

💭
🐀 🐀 🐀 🐀 🐀 🐀
View GitHub Profile
colors = {
'deep pink 1':(255, 20, 147),
'peacock':(51, 161, 201),
'deep pink 3':(205, 16, 118),
'deep pink 2':(238, 18, 137),
'deep pink 4':(139, 10, 80),
'medium violet red':(199, 21, 133),
'sea shell':(255, 245, 238),
'pale goldenrod':(238, 232, 170),
'yellow':(255, 255, 0),

Keybase proof

I hereby claim:

  • I am kscottz on github.
  • I am kscottz (https://keybase.io/kscottz) on keybase.
  • I have a public key whose fingerprint is 60F6 AC49 95B0 BDFD 3BFC 3C60 584E CE9C 1E95 F0A6

To claim this, I am signing this object:

@kscottz
kscottz / opencv_twitch.py
Created February 8, 2016 05:00
A hack to slurp up twitch streams and process them with opencv.
import cv2
import numpy as np
import time
import livestreamer
# use live streamer to figure out the stream info
streams = livestreamer.streams("http://www.twitch.tv/inostupid")
stream = streams['best']
# open our out file.
fname = "test.mpg"
@kscottz
kscottz / gopro.py
Created February 4, 2016 07:28
Trigger a gopro camera over wifi and automagically find and download the images or videos.
from goprohero import GoProHero
import urllib
import bs4
import time
def download_and_save(name,route="http://10.5.5.9:8080/videos/DCIM/100GOPRO/"):
grab = route+name
result = urllib.urlopen(grab)
if( result.code == 200 ):
with open(name,'wb') as fp: