Skip to content

Instantly share code, notes, and snippets.

View kscottz's full-sized avatar
💭
🐀 🫡 🛠️

Katherine Scott kscottz

💭
🐀 🫡 🛠️
View GitHub Profile
import requests
from collections import defaultdict
import time
def get_closed_issues_leaderboard(repo_owner, repo_name):
"""
Fetches closed issues from a public GitHub repository and generates a leaderboard
of closed issues by assignee.
Args:
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"