Skip to content

Instantly share code, notes, and snippets.

View MikiraSora's full-sized avatar
🐴
I hate triggers

Mikira Sora MikiraSora

🐴
I hate triggers
View GitHub Profile
@MikiraSora
MikiraSora / fuckAmdaemonFunctionName.py
Last active July 11, 2024 18:46
fuck amdaemon.exe and their function names
###
# amdaemon.exe 批量反向重命名
# sega有个开发习惯,存在一个log函数,其第一个参数则是调用方的函数名字。利用此规则可以轻松反向给函数重命名
# 提高amd调试坐牢效率
#
# 使用方法:
# * 打开 View -> Open subviews -> Strings ,搜索字符串"amDnsInit"
# * 按下X找到对应的xRef位置,是一个lea指令, 此lea指令下面最先出现的call sub_xxxxxxx()就是日志函数
# * 填写下面的printBFuncName成那个日志函数名
@MikiraSora
MikiraSora / gist:db936ce897ea42ac2c40d60c86876212
Created July 2, 2021 17:44
Batch pick .dds file from .svo file.
using System;
using System.Buffers;
using System.IO;
using System.Linq;
namespace SVOFileBatchPicker
{
class Program
{
static void Main(string[] args)
@MikiraSora
MikiraSora / .cs
Last active June 7, 2019 02:46
data binding chain example
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
@MikiraSora
MikiraSora / .cs
Created March 5, 2019 00:48
zzoj2
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp20
{
class Program:IComparer<(int,int,int,int)>
@MikiraSora
MikiraSora / .cs
Created January 18, 2019 14:54
Trim Storyboard Elements
using ReOsuStoryBoardPlayer;
using ReOsuStoryBoardPlayer.Base;
using ReOsuStoryBoardPlayer.Commands;
using ReOsuStoryBoardPlayer.Parser;
using ReOsuStoryBoardPlayer.Parser.Reader;
using ReOsuStoryBoardPlayer.ProgramCommandParser;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="./js/pixi.min.js"></script>
<script src="./js/cubism2/live2d.min.js"></script>
<script src="./js/cubism2/pixi-live2d.min.js"></script>
@MikiraSora
MikiraSora / C#
Created March 11, 2018 15:22
喵喵
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.Drawing.Text;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EasyStoryboardHelperUtils
@MikiraSora
MikiraSora / .cs
Created February 10, 2018 12:30
SB QQMusic
using System;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
@MikiraSora
MikiraSora / C#
Created June 2, 2017 17:23
蛇皮正则
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp3
{
class Program
{
public static void printRepeatChar(string text){
char c=(char)0, pc=(char)0;
int count = 0,position=-1;
Console.WriteLine($"raw >\"{text}\"");
Console.Write("translate >\"");
while (true)
{
if (++position >= text.Length)
break;