This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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'} |