Skip to content

Instantly share code, notes, and snippets.

View MarioMey's full-sized avatar

Mario Mey MarioMey

  • Castelar, Bs As, Argentina
View GitHub Profile
#!/usr/bin/env python3
import re
class Color:
def __init__(self):
self.reset = '\x1b[0m'
self.blanco = '\x1b[97m'
self.negro = '\x1b[90m'
self.rojo = '\x1b[91m'
self.verde = '\x1b[92m'
@MarioMey
MarioMey / py
Created October 10, 2021 04:53
Transfer OBS API Documentation to obspython.py
#!/usr/bin/env python3
import re
class Color:
def __init__(self):
self.reset = '\x1b[0m'
self.blanco = '\x1b[97m'
self.negro = '\x1b[90m'
self.rojo = '\x1b[91m'
self.verde = '\x1b[92m'
#!/usr/bin/env python3
import obspython as obs
from contextlib import contextmanager, ExitStack
def get_scene_context(scene_name):
scenes_list = obs.obs_frontend_get_scenes()
return_scene = None
for scene in scenes_list:
@MarioMey
MarioMey / bt_gamepads.py
Created June 26, 2021 13:58
Bluetooth Gamepads connection and reception.
#!/usr/bin/env python3
import time
from evdev import InputDevice, ecodes
from selectors import DefaultSelector, EVENT_READ
but = [307, 308, 305, 304, 315]
devices = {'/dev/input/event16':'c' ,
'/dev/input/event20':'c'}