Skip to content

Instantly share code, notes, and snippets.

View gwanryo's full-sized avatar

Ryo gwanryo

View GitHub Profile
@gwanryo
gwanryo / keybase.md
Created July 9, 2019 03:10
keybase.md

Keybase proof

I hereby claim:

  • I am gwanryo on github.
  • I am gwanryo (https://keybase.io/gwanryo) on keybase.
  • I have a public key whose fingerprint is C4FD 7C52 4AFD AB5F BC06 67DC 4897 C1BD B014 F168

To claim this, I am signing this object:

# https://github.com/mans-men/eye-blink-detection-demo
# import the necessary packages
from scipy.spatial import distance as dist
from imutils.video import FileVideoStream
from imutils.video import VideoStream
from imutils import face_utils
import argparse
import imutils
import time
import dlib
@gwanryo
gwanryo / twitch-recorder.py
Last active December 10, 2022 00:36
twitch-recorder.py
#!/usr/bin/python3
#-*- coding: utf-8 -*-
# https://github.com/ancalentari/twitch-stream-recorder
import datetime
import enum
import getopt
import logging
import os
import subprocess
import subprocess
import json
def get_subprocess_output(cmd):
process = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE)
process.wait()
data, _ = process.communicate()
if process.returncode != 0:
return None
return data.decode('utf-8')