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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <math.h> | |
#include <errno.h> | |
#include <signal.h> | |
#include <pulse/simple.h> | |
#include <pulse/error.h> |
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 sys | |
import cv2 | |
import struct | |
import numpy as np | |
import socket | |
from pyboy import PyBoy | |
pyboy = PyBoy(sys.argv[1],debugging=False,disable_input=False,hide_window="--quiet" in sys.argv) | |
pyboy.set_emulation_speed(1) |
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 socket | |
import struct | |
import logging | |
from PIL import Image | |
class PixelClient(): | |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
buffer = [] | |
log = logging.getLogger("pixelclient") |
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 socket | |
import struct | |
import pyaudio | |
import wave | |
import audioop | |
import math | |
UDP_IP = "192.168.3.4" | |
UDP_PORT = 5000 | |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |
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
""" | |
Small script that syncs the current now playing (MPD) with Icecast | |
By Melan | |
""" | |
import time | |
import os | |
import requests | |
from mpd import MPDClient |
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/python3.5 | |
import os | |
import subprocess | |
import json | |
import pyinotify | |
import time | |
import logging | |
class autoEncoder(): |