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
import os | |
import Xlib | |
import Xlib.display | |
""" | |
Simple Adaptive Mode script for the Ultimate Hacking Keyboard on Linux | |
This script listens to window focus changes and switches keymaps when | |
a matching window is found. It switches back to the default keymap when | |
switching away from a matched window. |
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
#chat .msg { | |
display: flex; | |
flex-wrap: wrap; | |
} | |
#chat .msg:not(.previous-source) { | |
margin-top: 1em; | |
} | |
#chat .msg.previous-source { | |
margin-top: 0em; | |
} |
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
# | |
# HTTP Server that returns an image from the RaspberryPi camera | |
# | |
import io | |
import time | |
import picamera | |
import pyco_http | |
def get_image(): |