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 mido | |
import sys | |
def clean_pitch_bend(input_path, output_path): | |
mid = mido.MidiFile(input_path) | |
last_pb = {} | |
for track in mid.tracks: | |
new_events = [] | |
delay_acculm = {i: 0 for i in range(16)} |
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
// ==UserScript== | |
// @name Annonate Emoicons | |
// @namespace https://dobby233liu.github.io | |
// @version v1.1.3 | |
// @description Add emoicon name hoverovers to bilibili rich text | |
// @author Liu Wenyuan | |
// @match https://*.bilibili.com/* | |
// @icon https://i0.hdslb.com/bfs/garb/126ae16648d5634fe0be1265478fd6722d848841.png | |
// @grant none | |
// @require https://unpkg.com/[email protected]/minified/arrive.min.js |
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
/* ==UserStyle== | |
@name insights-ui.soundcloud.com | |
@namespace github.com/openstyles/stylus | |
@version 1.0.0 | |
@description A new userstyle | |
@author Me | |
==/UserStyle== */ | |
@-moz-document domain("insights-ui.soundcloud.com") { | |
.DataList_ListItem__aVXcC.DataList_Blur__rlRSs, |
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
// ==UserScript== | |
// @name 跳转到opus/t页面 | |
// @namespace https://dobby233liu.github.io | |
// @version v1.0.1 | |
// @description 更换动态页界面类型 | |
// @author Liu "Dobby233Liu" Wenyuan | |
// @match https://t.bilibili.com/* | |
// @match https://www.bilibili.com/opus/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=bilibili.com | |
// @grant none |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=10"> | |
<title>solver</title> | |
</head> | |
<body onload="window.resizeTo(300, 300)"> | |
<script language="VBScript" type="text/vbscript"> | |
Function BoxedEval(func, x) |
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
/* ==UserStyle== | |
@name 旧版个人空间变宽 | |
@namespace dobby233liu.github.io | |
@version 0.9.16 | |
@license BSD-0-Clause | |
@author Liu Wenyuan | |
@homepageURL https://gist.github.com/Dobby233Liu/f91b843fca90fd983f95ff9cd38e2410 | |
@supportURL https://gist.github.com/Dobby233Liu/f91b843fca90fd983f95ff9cd38e2410#comments | |
@updateURL https://gist.github.com/Dobby233Liu/f91b843fca90fd983f95ff9cd38e2410/raw/space-widen.user.css | |
@preprocessor less |
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
from pydub import AudioSegment | |
from itertools import islice | |
def batched(iterable, n): | |
i = 0 | |
while i < len(iterable): | |
yield iterable[i:i+n] | |
i += n | |
THRESOLD = 3000 | |
song = AudioSegment.from_file("icepalace_boss loopfix2.flac") | |
newsong = song.empty() |
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
/* ==UserStyle== | |
@name 动态列表变宽加强版 | |
@namespace dobby233liu.github.io | |
@version 1.1.13 | |
@license BSD-0-Clause | |
@author Liu Wenyuan | |
@homepageURL https://gist.github.com/Dobby233Liu/3f08f12a2c675f8b847dfbbb6ce34452 | |
@supportURL https://gist.github.com/Dobby233Liu/3f08f12a2c675f8b847dfbbb6ce34452#comments | |
@updateURL https://gist.githubusercontent.com/Dobby233Liu/3f08f12a2c675f8b847dfbbb6ce34452/raw/opus-widen-dyn-list.user.css | |
==/UserStyle== */ |
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
// ==UserScript== | |
// @name Highlight Position Fix | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-08-10 | |
// @description try to take over the world! | |
// @author You | |
// @match https://t.bilibili.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=bilibili.com | |
// @grant none | |
// ==/UserScript== |
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
#pragma author Dobby233Liu | |
#pragma description Arc System Works Rockin' Pretty archive | |
#pragma endian little | |
struct file<auto data_start> { | |
char name[64]; | |
u32 size_uncompressed; | |
u32 size_compressed; | |
u32 data_offset; | |
u8 data[size_compressed] @ data_start + data_offset; |
NewerOlder