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 | |
import sys | |
import os | |
import glob | |
import math | |
import argparse | |
import cv2 | |
import numpy as np | |
import torch |
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 sys | |
import os | |
import struct | |
import ctypes | |
import imghdr | |
import random | |
SystemParametersInfoW = ctypes.windll.user32.SystemParametersInfoW | |
def set_wallpaper(path): |
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
Function TrimLoop(Clip clip) | |
{ | |
clip | |
# delete first frame if clip has an even frame count | |
DeleteFrame(0) | |
# optional: delete duplicate frame in the middle | |
#DeleteFrame(FrameCount / 2) | |
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/python | |
import sys, subprocess, getopt, os, json | |
def main(argv): | |
script_name = os.path.basename(argv[0]) | |
try: | |
opts, args = getopt.getopt(argv[1:], "sw:h:q:", ["help", "solid-color", "width=", "height=", "samples="]) | |
except getopt.GetoptError as err: |
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/perl | |
use strict; | |
use warnings; | |
use Math::Round; | |
use JSON; | |
use Getopt::Std; | |
# program paths | |
my $ffprobePath = "ffprobe"; |