This file contains 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
# MIGRATED HERE https://github.com/jul/pdca/blob/main/simple.py | |
# STDLIB | |
import multipart | |
from wsgiref.simple_server import make_server | |
from json import dumps | |
from html.parser import HTMLParser | |
from base64 import b64encode | |
from urllib.parse import parse_qsl, urlparse | |
import traceback | |
from http.cookies import SimpleCookie as Cookie |
This file contains 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 pyaudio | |
import matplotlib.pyplot as plt | |
import matplotlib.animation as animation | |
import numpy as np | |
import time | |
from sys import argv | |
A = 440.0 | |
try: | |
A=float(argv[1]) |
This file contains 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 | |
# -*- coding: utf8 -*- | |
from subprocess import Popen, PIPE, STDOUT | |
import sys, os | |
from time import sleep | |
import select | |
from random import randint | |
MAXX=512 | |
MAXY=512 |
This file contains 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 time import time, sleep | |
from subprocess import Popen, PIPE | |
import os | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from numpy import * | |
import select | |
from matplotlib import cm | |
# let's talk to tk/tcl directly |
This file contains 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 time import time, sleep | |
import select | |
from subprocess import Popen, PIPE | |
from random import randint | |
import random | |
from os import system | |
import os | |
ORD=0 |
This file contains 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 time import time, sleep | |
import select | |
from subprocess import Popen, PIPE | |
import os | |
from operator import itemgetter | |
SZ=15 | |
DIMX=50 | |
DIMY=50 | |
SSP=80 |
This file contains 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 python | |
from subprocess import Popen, PIPE | |
from time import sleep, time, localtime | |
import fcntl | |
import os | |
# let's talk to tk/tcl directly through p.stdin | |
p = Popen(['wish'], stdin=PIPE, stdout=PIPE) | |
fd = p.stdout.fileno() |
This file contains 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 python | |
from subprocess import Popen, PIPE | |
from time import sleep, time, localtime | |
# let's talk to tk/tcl directly through p.stdin | |
p = Popen(['wish'], stdin=PIPE) | |
def puts(s): | |
for l in s.split("\n"): | |
p.stdin.write((l + "\n").encode()) |
This file contains 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
class DimensionError(Exception): | |
pass | |
class matrix(object): | |
def __eq__(self, tocomp): | |
other=tocomp | |
if type(tocomp) != type(self): | |
other=matrix(tocomp) | |
return (self.__val__, self.dim) == (other.__val__, other.dim) |
This file contains 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 bash | |
:<< =cut | |
=head1 SYNOPSIS | |
[USER=$USER] [PORT=6666] [IP=127.0.0.1] [PASSWORD=secret] [BASEDN="dc=home"] bootstrap.sh DIRECTORY | |
bootstrap a standalone ldap server on given port and address with all data in DIRECTORY | |
=head2 OPTIONS |
NewerOlder