Skip to content

Instantly share code, notes, and snippets.

View papr's full-sized avatar
🏠
Working from home

Pablo Prietz papr

🏠
Working from home
  • Berlin
  • 20:15 (UTC +02:00)
View GitHub Profile
@papr
papr / gaze_with_offset_correction.py
Created August 31, 2020 12:59 — forked from pfaion/gaze_with_offset_correction.py
Offset Corrected Gaze From Recording
from pyglui import ui
import file_methods as fm
import player_methods as pm
from gaze_producer.gaze_producer_base import GazeProducerBase
from methods import denormalize
from player_methods import transparent_circle
class GazeFromRecordingWithOffsetCorrection(GazeProducerBase):
@papr
papr / devices.py
Created July 5, 2017 13:46 — forked from virtuald/devices.py
Enumerate all Windows audio devices using python+ctypes
import ctypes.wintypes
import ctypes as C
_dsound_dll = C.windll.LoadLibrary("dsound.dll")
_DirectSoundEnumerateW = _dsound_dll.DirectSoundCaptureEnumerateW
_LPDSENUMCALLBACK = C.WINFUNCTYPE(C.wintypes.BOOL,
C.wintypes.LPVOID,
C.wintypes.LPCWSTR,
C.wintypes.LPCWSTR,