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 random | |
while(True): | |
x = input(">>> ") | |
x = list(x) | |
y = [] | |
for char in x: | |
if char == " ": | |
y.append(" ") | |
else: |
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 numpy as np | |
import matplotlib.pyplot as plt | |
import csv | |
import glob | |
import os | |
print("Gathering CSVs...") | |
csvFiles = sorted(glob.glob(os.getcwd() + "/*.csv")) | |
numpyFileData = [] |
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 numpy as np | |
import matplotlib.pyplot as plt | |
import csv | |
import glob | |
import os | |
print("Gathering CSVs...") | |
csvFiles = sorted(glob.glob(os.getcwd() + "/*.csv")) | |
numpyFileData = [] |
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
// ==UserScript== | |
// @name PR ExpandR | |
// @namespace http://ryanfleck.ca/ | |
// @version 1.0 | |
// @description Expand all GitHub PR conversations. | |
// @author Ryan Fleck | |
// @match https://github.com/*/pull/* | |
// ==/UserScript== | |
var interval = 3000; |
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
#!/usr/bin/python3 | |
from PIL import Image, ImageDraw, ImageFont, ImageFilter | |
from sys import exit | |
import random | |
""" | |
This is a script to demonstrate profile image generation for wise users. |
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 os | |
import speech_recognition as sr | |
from pydub import AudioSegment | |
from pydub.silence import split_on_silence | |
r = sr.Recognizer() | |
r.energy_threshold = 300 | |
def clean_text(text:str): |
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
# transcribe_video.py | |
# A script to strip the audio from a video, split the audio into chunks, and send | |
# each chunk through the Google voice-to-text library to get the transcript. | |
# Requires: pydub, moviepy, numpy==1.19.3 | |
# FFMPEG must also be installed on the system. | |
# Tested on Windows 10. | |
import speech_recognition as sr |
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 os | |
import random | |
import enum | |
import cherrypy | |
""" | |
Dumb battlesnake, picks a clear path. | |
For instructions see https://github.com/BattlesnakeOfficial/starter-snake-python/README.md | |
""" |
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 cv2 | |
import mediapipe as mp | |
from pprint import pprint | |
from easy_vector import Vector | |
from functools import reduce | |
# https://pypi.org/project/vectors/ | |
mp_drawing = mp.solutions.drawing_utils | |
mp_hands = mp.solutions.hands |
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 cv2 | |
import mediapipe as mp | |
from pprint import pprint | |
from easy_vector import Vector | |
from functools import reduce | |
from time import sleep | |
# https://pypi.org/project/vectors/ | |
mp_drawing = mp.solutions.drawing_utils |