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, audioop | |
CHANNELS = 2 | |
RATE = 44100 | |
CHUNK = 4096 | |
FORMAT = pyaudio.paInt16 | |
p = pyaudio.PyAudio() | |
stream = p.open(format=FORMAT, channels=CHANNELS, rate=RATE, input=True, frames_per_buffer=CHUNK) | |
sample_size = pyaudio.get_sample_size(FORMAT) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
import time, random | |
import math | |
from collections import deque | |
start = time.time() | |
class RealtimePlot: | |
def __init__(self, axes, max_entries = 100): |
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
image_path = "HOPE.png" | |
from mpl_toolkits.mplot3d import Axes3D | |
from matplotlib import pyplot | |
from PIL import Image | |
fig = pyplot.figure() | |
axis = fig.add_subplot(1, 1, 1, projection="3d") # 3D plot with scalar values in each axis | |
im = Image.open(image_path) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title>WARR NEVER CHANGES</title> | |
<style> | |
body { | |
background: black; | |
overflow: hidden; | |
} |
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
path = "normalized_data.json" | |
user = "Keri Warr" | |
import json, sys, re | |
import random | |
from collections import defaultdict | |
data = json.load(open(path, "r")) | |
START, END = 0, 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
path = "data.json" | |
new_path = "normalized_data.json" | |
from urllib.parse import urlparse, parse_qs | |
import json | |
users = { | |
"fbid:100001608518631": "Anthony Zhang", | |
"fbid:1538370516": "Keri Warr", | |
"fbid:814604197": "Daniel Hopper", |