This file contains 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
[Script Info] | |
; Script generated by Aegisub master r8903+1 g1042226, line0 | |
; http://www.aegisub.org/ | |
Title: Default Aegisub file | |
ScriptType: v4.00+ | |
WrapStyle: 0 | |
ScaledBorderAndShadow: yes | |
YCbCr Matrix: None | |
[V4+ Styles] |
This file contains 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
"""Creates easy frame comparisons between multiple VapourSynth clips.""" | |
__all__ = ['prep', 'comp', 'save'] | |
__author__ = 'Dave <orangechannel@pm.me>' | |
__date__ = '30 November 2019' | |
import os | |
from contextlib import contextmanager | |
from functools import partial | |
from math import floor, sqrt | |
from random import randint, sample |
This file contains 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
# Copyright (c) 2013, Martin Herkt | |
# | |
# Permission to use, copy, modify, and/or distribute this software for any | |
# purpose with or without fee is hereby granted, provided that the above | |
# copyright notice and this permission notice appear in all copies. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | |
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | |
# AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
This file contains 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
"""VSEdit bookmark generator.""" | |
__all__ = ['generate', 'convert'] | |
__author__ = 'Dave <orangechannel@pm.me>' | |
__date__ = '30 November 2019' | |
import vapoursynth as vs | |
import re | |
core = vs.core |
This file contains 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 | |
""" | |
Chapter timings generator | |
""" | |
import math | |
from fractions import Fraction | |
frame_no = input('Frame number(s) (\'34 7004 13451\'): ') | |
frames = list(map(int, frame_no.split())) |
This file contains 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 shlex | |
header = r'<?xml version="1.0"?>' + '\n' + r'<!-- <!DOCTYPE Tags SYSTEM "matroskatags.dtd"> -->' | |
header += '\n<Tags>' | |
editionuids = input('input the edition uids (2906622092 4906785091): ') | |
uids = list(map(int, editionuids.split())) | |
names = shlex.split(input('input the edition names (\'normal\' \'no credits\'): ')) | |
outfile = str(input('desired file name (example.xml): ')) |
This file contains 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
"""Bitrate and filesize calculator.""" | |
__all__ = ['bitrate', 'filesize'] | |
__author__ = 'Dave <orangechannel@pm.me>' | |
__date__ = '30 November 2019' | |
from string import ascii_uppercase | |
def bitrate(size: str, seconds: int = None, frames: int = None, | |
framerate: float = 24000 / 1001): |
This file contains 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 | |
""" | |
OGM chapter timings generator that opens into toolnix GUI | |
""" | |
import math, shlex, subprocess | |
from fractions import Fraction | |
path_to_mkvtoolnix_gui = 'mkvtoolnix-gui' |
This file contains 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 itertools | |
import random | |
from fractions import Fraction | |
import functools | |
intact = [Fraction(76, 100), Fraction(22, 100), Fraction(2 , 100)] | |
exceptional = [Fraction(70, 100), Fraction(26, 100), Fraction(4 , 100)] | |
flawless = [Fraction(60, 100), Fraction(34, 100), Fraction(6 , 100)] | |
radiant = [Fraction(50, 100), Fraction(40, 100), Fraction(10, 100)] |
This file contains 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
"""Functions to help setup poker tournaments.""" | |
__author__ = 'Dave <orangechannel@pm.me>' | |
__date__ = '4 February 2020' | |
from itertools import product | |
# Constants: | |
CASE = 100 | |
MAX_PLAYERS = 10 |
OlderNewer