Skip to content

Instantly share code, notes, and snippets.

View Dobby233Liu's full-sized avatar

Liu Wenyuan Dobby233Liu

View GitHub Profile
@Dobby233Liu
Dobby233Liu / xiaoxiao_tts.py
Last active May 30, 2023 07:05 — forked from xjohjrdy/xiaoxiao_tts.py
superb edit of an old parameterless script
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""Edge Microsoft TTS for Python."""
import sys
from ws4py.client.threadedclient import WebSocketClient
import binascii
import argparse
import json
import requests
import re
@Dobby233Liu
Dobby233Liu / parseml.py
Last active September 15, 2023 13:01 — forked from urschrei/parseml.py
(Attempt to) extract (everything) from EML files (specified in command args), and write them to (a well-named) output subdir
#!/usr/bin/env python
"""
2020 update:
- More iterators, fewer lists
- Python 3 compatible
- Processes files in parallel
(one thread per CPU, but that's not really how it works)
hacked to dump everything
@Dobby233Liu
Dobby233Liu / Scripts.rvdata2-exporter.rb
Last active February 16, 2024 13:52 — forked from FiXato/Scripts.rvdata2-exporter.rb
Script to export the scripts inside the Scripts.rxdata data file to Scripts as plain text Ruby files. Deals with the invalid characters that the edgy thing that's Undertale Zero Genocide inserts in its script names.
#! /usr/bin/env ruby
# encoding: utf-8
# Script to export the scripts inside the Scripts.rxdata data file to Scripts as plain text Ruby files.
# Based on FiXato/Scripts.rvdata2-exporter.rb https://gist.github.com/FiXato/5323361
require "fileutils"
require "zlib"
class Exporter
def self.export_scripts