Skip to content

Instantly share code, notes, and snippets.

View an0ndev's full-sized avatar
👨‍💻
writing a c++ programmable web server while procrastinating algebra homework

Eric Reed an0ndev

👨‍💻
writing a c++ programmable web server while procrastinating algebra homework
View GitHub Profile
@an0ndev
an0ndev / HowTo.md
Last active September 28, 2020 19:26
How to make HTML videos play speedy fast

How to make HTML videos play speedy fast

INSTALLING

  1. Install Tampermonkey from here: https://www.tampermonkey.net/
  2. Click the Tampermonkey icon to the right of your browser's address bar (may show up under the hamburger menu), and click "Create a new script..."
  3. Delete the sample code in the editor, and paste the following code in:
// ==UserScript==
@an0ndev
an0ndev / LabelConverter.py
Created February 21, 2020 03:54
LabelConverter.py: Converts from the Audacity label format into the Python LED program label format. If you see this, add me on Snapchat @hewwocraziness :)
import os
import sys
usage = "Usage: {} AuSeq_[Song-Name].txt".format (sys.argv [0])
def print_usage ():
print (usage) # One-liner function, I know, I know. I like abstraction, alright? Sue me.
CSV_DELIMITER = ","
CSV_PAD_CHAR = " "
CSV_PADDING_ENABLED = True
@an0ndev
an0ndev / killflash.py
Last active October 8, 2019 22:36
Kill Flash v0.2 by Eric Reed: Kills the Flash updater before it even opens.
# Kill Flash v0.2 by Eric Reed: Kills the Flash updater before it even opens.
# Like my work? Follow me on Instagram: @ericreed_
# This program relies on the rumps library by jaredks.
# See its license (the BSD 3-Clause) at:
# https://github.com/jaredks/rumps/blob/master/LICENSE
# This program is licensed under CC0 (public domain), available at:
# https://creativecommons.org/share-your-work/public-domain/cc0/
@an0ndev
an0ndev / StackTraceFetcher.java
Created June 25, 2019 02:18
Fetch JSON/text from a URL and handle the result asynchronously (Android)
import java.io.PrintWriter;
import java.io.StringWriter;
// A class used to obtain the stack trace from an Exception as a String.
// Useful for alternative logging methods.
public class StackTraceFetcher {
public static String fetchStackTrace (Exception exception) {
// Thanks, https://stackoverflow.com/a/1149712/5037905 !
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);