Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
</head>
<body>
<!--<svg viewBox="0 0 1000 1000">
<path
id="path"
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
d="M 500,500 A 500,500 0 1 1 0,500 500,500 0 1 1 1000,500"
import re
import base64
import math
import threading
import argparse
metadata = {}
lock = threading.Lock()
def update_metadata(type, code, length, data):
from threading import Timer
def debounce(wait, argument_dependent=False):
""" Decorator that will postpone a functions
execution until after wait seconds
have elapsed since the last time it was invoked. """
def decorator(fn):
def debounced(*args, **kwargs):
def call_it():
import time
import random
import socket
import struct
import argparse
class CANMessage:
id = 0
dlc = 0
data = bytearray(0x00)
import os
import json
from http.server import BaseHTTPRequestHandler,HTTPServer
from _thread import start_new_thread
song_info = {}
#This class will handles any incoming request from
#the browser
class RequestHandler(BaseHTTPRequestHandler):