Skip to content

Instantly share code, notes, and snippets.

View Frankenmint's full-sized avatar

Frankenmint Frankenmint

View GitHub Profile
@Frankenmint
Frankenmint / mp3ToVideo.sh
Created May 27, 2024 06:59
Do you make music (without lyrics) and want a simple method for making visualizer videos? Use this to make 4k spectrograph videos from your MP3 files!
#!/bin/bash
# Check if the required argument is provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <input_directory>"
exit 1
fi
# Input directory containing MP3 files
INPUT_DIR="$1"
#!/bin/bash
# ARE YOU SICK OF THE INTERNET BEING STUPID WITH GIVING YOU WEBP FILES?
# Like you made EVERYTHING to work with pngs and (ugh) jpegs. Cool, I get it save
# money, use compression standard wepb. FUCK YOU... update the tooling on the other side of the coin then!!!
# OK so download this and save it as a shell file (then give it executable permissions)
# so.. sudo chmod +x webPng.sh (or whatever you named it). Now, run it in the terminal in the same
# folder where you downloaded those pesky webP files and PRESTO it will convert them into PNG files, YAAY :)
# I maed this with the help of chatgpt, fyi
import airsim
from pynput import keyboard
import numpy as np
from scipy.spatial.transform import Rotation as ScipyRotation
import time
class DroneController:
"""
High level drone controller for manual drone navigation using a regular keyboard.
@Frankenmint
Frankenmint / bookmarklet.js
Created October 31, 2019 22:15 — forked from mcotton/bookmarklet.js
auto-login bookmarklet
// Saved URL should look like this:
// javascript:<function>
// replace <function> with the following text
(function(){
// Grab the username and password input fields
user = document.getElementById('txtUserName');
pass = document.getElementById('txtPassword');
// Grab the submit button, oddly named 'punch'
Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1
import Ember from 'ember';
var myArray = ['he','name','of','very','to','through','and','just','a','form','in','much','is','great','it','think','you','say','that','help','he','low','was','line','for','before','on','turn','are','cause','with','same','as','mean','I','differ','his','move','they','right','be','boy','at','old','one','too','have','does','this','tell','from','sentence','or','set','had','three','by','want','hot','air','but','well','some','also','what','play','there','small','we','end','can','put','out','home','other','read','were','hand','all','port','your','large','when','spell','up','add','use','even','word','land','how','here','said','must','an','big','each','high','she','such','which','follow','do','act','their','why','time','ask','if','men','will','change','way','went','about','light','many','kind','then','off','them','need','would','house','write','picture','like','try','so','us','these','again','her','animal','long','point','make','mother','thing','world','see','near','him','build','two','self
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script><div id="tickerBox"></div>
<script>
var tickerBox = document.getElementById('tickerBox');
var divTicker = document.createElement('div');
divTicker.setAttribute("id", "ticker");
tickerBox.appendChild(divTicker);
divTicker.style.fontSize="4rem";
divTicker.style.fontWeight="bold";
divTicker.style.letterSpacing="2px";
#!/usr/bin/env python
from time import sleep
import random
lives = 3
score = 0
def inflate(toStretch):
if toStretch == "r":
@Frankenmint
Frankenmint / slack_history.py
Created April 30, 2016 07:29 — forked from Chandler/slack_history.py
Download Slack Channel/PrivateChannel/DirectMessage History
from slacker import Slacker
import json
import argparse
import os
# This script finds all channels, private channels and direct messages
# that your user participates in, downloads the complete history for
# those converations and writes each conversation out to seperate json files.
#
# This user centric history gathering is nice because the official slack data exporter
# only exports public channels.
.ribbon{
width: 100%;
margin: 50px auto;
padding: 7px 0;
background:#76c65f;
position: relative;
}
.ribbon-text{
display: inline-block;