Skip to content

Instantly share code, notes, and snippets.

View samclane's full-sized avatar

Sawyer McLane samclane

View GitHub Profile
@tapsandswipes
tapsandswipes / ResetTag
Last active July 13, 2023 07:52
Reset tag in git
git push origin :refs/tags/<tagname> // Delete tag from remote
git tag -fa <tagname> // Reset tag to current commit
git push origin master --tags // Push tag to remote
@ZWMiller
ZWMiller / streamAudio.py
Created June 19, 2017 16:36
Using Python to plot the current microphone's input and the Fourier Transform
try:
import pyaudio
import numpy as np
import pylab
import matplotlib.pyplot as plt
from scipy.io import wavfile
import time
import sys
import seaborn as sns
except:
@EvieePy
EvieePy / error_handler.py
Last active July 22, 2024 16:51
Simple Error Handling for ext.commands - discord.py
"""
If you are not using this inside a cog, add the event decorator e.g:
@bot.event
async def on_command_error(ctx, error)
For examples of cogs see:
https://gist.github.com/EvieePy/d78c061a4798ae81be9825468fe146be
For a list of exceptions:
https://discordpy.readthedocs.io/en/latest/ext/commands/api.html#exceptions
@tomatosoupcan
tomatosoupcan / mouseit.py
Created August 10, 2020 20:53
A simple python script to draw web images into jackbox games
import mouse
import keyboard
import cv2
import numpy as np
import urllib.request
import pyautogui
import time
from matplotlib import pyplot as plt
from matplotlib.patches import Circle
import gc