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 matplotlib.pyplot as plt | |
| from mpl_toolkits.mplot3d import Axes3D | |
| #from matplotlib.animation import FuncAnimation | |
| import numpy as np | |
| import sys | |
| rng = list(map(float, sys.stdin.readlines())) | |
| period = len(rng) | |
| #print(rng) |
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
| typedef unsigned short u16; | |
| u16 random_u16(void) { | |
| static u16 s; | |
| s ^= s << 8; | |
| s = ((s & 0xFF) << 1) ^ ((s << 8) | (s >> 8)); | |
| s = 38607*s + 35335; | |
| s = (s >> 1) ^ (-(~s & 1) & 0x9E74) ^ 0x7E00; |
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
| #!/bin/python | |
| import tkinter as tk | |
| import subprocess as sp | |
| import os | |
| rot = ["normal", "left", "inverted", "right"] | |
| trans = ["1 0 0 0 1 0 0 0 1", "0 -1 1 1 0 0 0 0 1", "-1 0 1 0 -1 1 0 0 1", "0 1 0 -1 0 1 0 0 1"] | |
| devs = ["Wacom HID 5215 Finger touch", "Wacom HID 5215 Pen stylus", "Wacom HID 5215 Pen eraser"] |
OlderNewer