Skip to content

Instantly share code, notes, and snippets.

extends KinematicBody
var defaultspeed = 1000
var speed = defaultspeed
var direction = Vector3()
var gravity = -250
var velocity = Vector3()
var mousespeed = 0.005
func _physics_process(delta):
for digit in range(100): print(str('fizz' * (digit % 3 == 0)) + str('buzz' * (digit % 5 == 0))) #rip
@renamedquery
renamedquery / black-and-white-to-final.py
Created April 27, 2020 22:51
The program that converts the black and white image to the album art
import cv2, numpy, PIL.Image, PIL.ImageDraw, PIL.ImageFont, sys
verticalLines = int(sys.argv[-1])
lineIntesity = int(sys.argv[-2])
margin = 205
finalResolution = [1200 + 5, 1000 + margin]
lineWidth = 5
colors = ['#303030', '#ffffff'] #background and foreground
positionPercentagesFinalFinal = [0.66, 0.82] #[center of where finalImg will be pasted (1+ is higher 1- is lower 1 is dead center), percentage of height from top for the text]
bottomText = ['Q U A R A N T I N E'] #title
#python3 colortempadj.py [input_path] [temp_kelvin] [output_path]
#modified command line version of https://github.com/getinthefuckingrobot/Color-Temperature
#this was thrown together in a hurry, expect a documented version soon
import cv2, sys
import numpy as np
import matplotlib.pyplot as plt
def alphablend(color, tmpColor, tempStrength):
return color * (1-tempStrength) + tmpColor * tempStrength
#!/bin/bash
function rcon {
[PATH_TO_TOOLS_DIR]/mcrcon -H 127.0.0.1 -P [RCON_PORT] -p [RCON_PASSWORD] "$1"
}
rcon "save-off"
rcon "save-all"
tar -cvpzf [PATH_TO_BACKUP_DIR]/server-$(date +%F_%R).tar.gz [PATH_TO_MINECRAFT_SERVER_DIR]
rcon "save-on"
## Delete older backups
[PATH_TO_BACKUP_DIR] -type f -mtime +7 -name '*.gz' -delete
#!/bin/bash
find . -name '*.m4a' -type f -exec bash -c 'ffmpeg -i "$0" -acodec libmp3lame -ab 320 "${0%.m4a}.mp3"' {} \;
<form action = "{{ url_for('WEB_MANAGESUBSCRIPTION') }}" method = 'POST'>
<div class = 'container-fluid'>
<p>Add a new subscription</p>
<div class = 'input-group d-flex justify-content-center row m-0'>
<div class = 'col-lg-12 p-0'>
<input name = 'url' type = 'text' class = 'form-control col-12 rounded' placeholder = 'Playlist/Channel URL'>
</div>
<div class = 'col-lg-6 p-0'>
<select class = 'custom-select form-control rounded col-12' name = 'format'>
<option value = 'best'>Best Audio and Video (YouTube)</option>
#include <TFMini.h>
#include <SoftwareSerial.h>
// must be a 8x1 integer array of LED pins
const int DIRECTIONAL_LED_PINS[] = {
13, // north status (id = 0)
12, // northeast status (id = 1)
11, // east status (id = 2)
10, // southeast status (id = 3)
9, // south status (id = 4)
@renamedquery
renamedquery / gumroad-css.css
Created August 20, 2021 21:03
the css for my gumroad page
.creator-profile-picture-and-name .post-author{color:#404040 !important;font-size:25px !important;}
.powered-by-footer{display:none !important;}
.creator-profile-card__bio {color:#404040 !important;font-size:18px !important;}
.products-section{background-color:#ffffff !important;}
.wrapper{background-color:#ffffff !important;}
.product-information{background-color:#fafafa !important;}
.product-name,.product-main .product-information h1{color:#5e5e5e !important;}
.product-main{border: 1px solid #949494 !important;}
.buy-form-main{background-color:#ffffff !important;}
.want-container{background-color:#ffffff !important;}
@renamedquery
renamedquery / 2700x1200_vhs.frag
Created October 9, 2021 00:11
vhs.frag adapted for a 2700x1200 output size
// from https://github.com/brimson/olive_effects_legacy/tree/master/vhs
// Adapted from https://www.shadertoy.com/view/XtBXDt
uniform sampler2D image;
uniform float time;
varying vec2 vTexCoord;
#define PI 3.14159265