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
[["125","[Unknown]"],["26","Black"],["23","Blue"],["28","Green"],["107","Dark Turquoise"],["21","Red"],["221","Dark Pink"],["25","Brown"],["2","Light Gray"],["27","Dark Gray"],["45","Light Blue"],["37","Bright Green"],["116","Light Turquoise"],["101","Salmon"],["9","Pink"],["24","Yellow"],["1","White"],["6","Light Green"],["3","Light Yellow"],["5","Tan"],["39","Light Violet"],["50","Glow In Dark Opaque"],["104","Purple"],["196","Dark Blue-Violet"],["106","Orange"],["124","Magenta"],["119","Lime"],["138","Dark Tan"],["222","Bright Pink"],["324","Medium Lavender"],["325","Lavender"],["109","Trans-Black IR Lens"],["43","Trans-Dark Blue"],["48","Trans-Green"],["311","Trans-Bright Green"],["41","Trans-Red"],["111","Trans-Brown"],["42","Trans-Light Blue"],["49","Trans-Neon Green"],["229","Trans-Very Lt Blue"],["113","Trans-Dark Pink"],["44","Trans-Yellow"],["40","Trans-Clear"],["126","Trans-Purple"],["157","Trans-Neon Yellow"],["47","Trans-Neon Orange"],["36","Very Light Orange"],["198","Light Purple"],["192","Redd |
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
use std::iter; | |
#[derive(Copy, Clone)] | |
pub struct Bcd8<const N: usize>(pub(super) [u8; N]); | |
impl<const N: usize> Bcd8<N> { | |
pub const fn zeros() -> Self { | |
Self([0; N]) | |
} |
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
public static String testableHtml(PageData pageData, boolean includeSuiteSetup) { | |
if (!pageData.hasAttribute("Test")) { | |
return pageData.getHtml(); | |
} | |
WikiPage wikiPage = pageData.getWikiPage(); | |
StringBuffer buffer = new StringBuffer(); | |
if (includeSuiteSetup) { | |
includePage(buffer, wikiPage, SuiteResponder.SUITE_SETUP_NAME, "-setup"); |
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 frame_from_ms, ms_from_frame from aegisub | |
export script_name = 'Fix Bad Shift' | |
export script_description = 'Attempt to fix misaligned timeshifted fbf subs' | |
export script_author = 'The0x539' | |
export script_version = '0.1.0' | |
export script_namespace = '0x.FixBadShift' | |
start_frame = (line) -> frame_from_ms line.start_time | |
end_frame = (line) -> frame_from_ms line.end_time |
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
require 'karaskel' | |
-- A magic table that is interested in every style. | |
all_styles = {} | |
setmetatable all_styles, | |
__index: -> true | |
__newindex: -> | |
-- The shared global scope for all template code. | |
class template_env |
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
tr = aegisub.gettext | |
export script_name = tr'Stable Retime' | |
export script_description = tr'Set start/end timestamps while preserving kara/transform timing' | |
export script_author = 'The0x539' | |
export script_version = '0.1.0' | |
export script_namespace = '0x.StableRetime' | |
DependencyControl = require 'l0.DependencyControl' | |
rec = DependencyControl { |
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
local tr = aegisub.gettext | |
script_name = tr't-retime' | |
script_description = tr'Set start/end timestamps while preserving transform timing' | |
script_author = 'The0x539' | |
script_version = '1' | |
local function splice(str, a, b, replacement) | |
return str:sub(1, a - 1) .. replacement .. str:sub(b + 1) | |
end |
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
local tr = aegisub.gettext | |
script_name = tr'k-retime' | |
script_description = tr'Set start/end timestamps while preserving syl timing' | |
script_author = 'The0x539' | |
script_version = '0.1.0' | |
script_namespace = '0x.k-retime' | |
local DependencyControl = require 'l0.DependencyControl' | |
local rec = DependencyControl { |
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) 2020, The0x539 <[email protected]> | |
-- | |
-- Permission to use, copy, modify, and 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 |
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/env python3 | |
# Collect a mapping of style -> appearances | |
appearances = {} | |
for i in range(1, 51): | |
with open(f'[Treebeard] Kemono no Souja Erin BD - {i:02}.ass', 'r') as f: | |
for line in f: | |
if line.startswith('Style:'): | |
line = line.strip() # Get rid of stray newlines | |
line = line[7:] # And the Style: prefix |
NewerOlder