Skip to content

Instantly share code, notes, and snippets.

@absindx
absindx / extract_zip_filename_encoding.py
Created May 4, 2024 15:46
Extract a Zip file by specifying file name encoding.
#--------------------------------------------------
# extract_zip_filename_encoding.py
# Extract a Zip file by specifying file name encoding.
#--------------------------------------------------
import argparse
import datetime
import glob
import os
import re
@absindx
absindx / Twitter is SHIT.user.js
Last active February 5, 2023 08:41
Removed the dialog when not logged in.
// ==UserScript==
// @name Twitter is SHIT
// @version 20221001
// @description Twitter can't be Instagram
// @match https://twitter.com/*
// ==/UserScript==
(function() {
'use strict';
@absindx
absindx / Text Timer.lua
Last active September 17, 2022 14:32
OBS Script - Text Timer
--------------------------------------------------
-- OBS Text Timer
--------------------------------------------------
--------------------------------------------------
-- Setting
--------------------------------------------------
local TimerFormat_Full = "%Y/%m/%d %H:%M:%S"
local TimerFormat_Time = "%H:%M:%S"
@absindx
absindx / SGDQ 2022 script.md
Last active July 2, 2022 20:23
SGDQ2022 japanese_restream スーパーマリオコレクション+スーパーマリオワールド 台本
@absindx
absindx / _usage.md
Last active February 18, 2023 22:18
sd2snesimg 対応ファームウェア追加

sd2snesimg add define

使い方

  1. sd2snesimgのページをhtml形式で保存する
  2. 保存したhtmlファイルをテキストエディタで開く
  3. 追加したいファームウェアのバージョン定義をコピーする
  4. 22行目から始まる offsets バージョン定義リストの末尾にコピーしたバージョン定義を貼りつけて保存する
  5. htmlをブラウザで開き、ファームウェアをUploadして認識することを確認
  6. 以降は普通に操作してファームウェアを生成する
@absindx
absindx / BubbleGirl.asl
Created May 26, 2021 14:58
Bubble Girl Auto split
//--------------------------------------------------
// Bubble Girl - Auto split
// absindx
//--------------------------------------------------
// regist pointers
state("BUBBLEGIRL"){
// none.
}
@absindx
absindx / Disassemble.asm
Last active January 4, 2021 05:57
SuperTetris3 Mino Simulation
CalcurateNextMino:
; 引数
; A ミノ範囲 (#imm 7)
809256: PHP ; Pレジスタ保存
809257: REP #$20 ; A = 16bit
809259: PHA ; 除数保存
80925A: LDA $0685 ;\
80925D: XBA ; | 被除数セット = 乱数
80925E: STA $4204 ;/
809261: PLA ; 除数復帰
// ==UserScript==
// @name Twitch theater color fix
// @version 0.20
// @description Apply color themes in Twitch's theater mode (and channel point auto receive)
// @author absindx
// @match https://www.twitch.tv/*
// @grant none
// ==/UserScript==
(function() {
NTSC
Audio (30fps) = 4500000 [Hz]
Horizontal sync frequency = 15750 [Hz]
Scanline = 525
Color signal = 286
Color horizontal sync frequency = 4500000 / 286 = 15734.265734266 (~ 15750) [Hz]
Color subcarrier = (4500000 / 286) * (455 / 2) [Hz]
4500000 * 2 / (286 * 525)
9000000 / 150150