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
<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" |
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 re | |
import base64 | |
import math | |
import threading | |
import argparse | |
metadata = {} | |
lock = threading.Lock() | |
def update_metadata(type, code, length, data): |
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
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(): |
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 time | |
import random | |
import socket | |
import struct | |
import argparse | |
class CANMessage: | |
id = 0 | |
dlc = 0 | |
data = bytearray(0x00) |
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 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): |
NewerOlder