Skip to content

Instantly share code, notes, and snippets.

Avatar

pcroland

  • ( ͡° ͜ʖ ͡°)
  • Hungary
View GitHub Profile
View chapterstretch.py
#!/usr/bin/python3
from sys import argv as Args
import datetime
def main():
filename = Args[3]
for i, arg in enumerate(Args):
if '/' in arg:
View keksh.sxcu
{
"Version": "13.4.0",
"DestinationType": "ImageUploader",
"RequestMethod": "POST",
"RequestURL": "https://kek.sh/api/v1/posts",
"Headers": {
"x-kek-auth": ""
},
"Body": "MultipartFormData",
"FileFormName": "file",
View UpscaleCheck.avsi
function UpscaleCheck(clip c, string "resolution") {
resolution = default(resolution, "720")
eval("""Interleave(c.myffinfo("source", color_lawngreen), c.AutoResize(""" + Chr(34) + resolution + Chr(34) + """).z_Spline36Resize(c.width, c.height).myffinfo("source -> """ + resolution +""" -> source", color_cyan))""")
}
View Corners.avsi
# Corners.avsi, https://forum.doom9.org/showthread.php?p=1819881#post1819881
# Crops all 4 corners of input and outputs stack4 window clip of those corners, allows viewing of corners without scrolling large input clip.
# Giving W=Width(default width/4) and H=Height(default Height/4) of corners. (Default output dim half of input dim, ie 2*Width/4, 2*Height/4).
# (Max W=c.Width, H=c.Height, where output 4 window stack of double dimensions to input).
Function Corners(clip c, Int "W", Int "H") {
c
W = Default(W, 720)
H = Default(H, 360)
W = Default(W,Width/4) H = Default(H,Height/4) # Default corners quarter of dimensions
W=W/4*4 H=H/4*4 # W Mod4 (YV411 compat), H Mod4 (YV12 Interlaced compat)
@pcroland
pcroland / mylwlinfo.avsi
Last active Sep 6, 2021
Modified lwlinfo for showing only the important parts with white and you can add a bonustext (group name for example) with predefined colors.
View mylwlinfo.avsi
red = $FF7C7C
green = $B2FF7C
blue = $8F97FF
yellow = $FFE07C
orange = $FFB97C
magenta = $FF77FF
violet = $C787FF
cyan = $7DF9FF
white = $FFFFFF
azure = $86C8FF