Skip to content

Instantly share code, notes, and snippets.

View gerth2's full-sized avatar

Chris Gerth gerth2

View GitHub Profile
@gerth2
gerth2 / log_OHMV_Qualification_19_2020-02-28_10-44-43_TELEOP.csv
Created March 1, 2020 18:23
Q19 Teleop Log - Miami Valley Regional 2020
We can't make this file beautiful and searchable because it's too large.
@gerth2
gerth2 / discordBot.py
Created November 2, 2019 00:26
Discord.py Mike->Discord sample
import discord
import threading
import asyncio
import time, math, random
import sounddevice as sd #from https://python-sounddevice.readthedocs.io/en/0.3.14/
# Gets audio from the microphone
class MicrophoneAudioSource(discord.PCMAudio):
def __init__(self, duration_ms=20):
self.SAMP_RATE_HZ = 48000.0 #48 KHz