Skip to content

Instantly share code, notes, and snippets.

@echo off
cd c:\android-backup-extractor
rem パッケージ指定
:input_check
set pacname=
set /P pacname="抽出するアプリのパッケージ名を入力:"
if %pacname% =="" goto :input_check
@c2t-r
c2t-r / AvatarID.md
Last active March 29, 2024 09:29
Avatar IDs for HSR (not including unconfirmed data)

Avatar ID

ID JP EN CN
1001 三月なのか Merch 7th 三月七
1002 丹恒 Dan Heng 丹恒
1003 姫子 Himeko 姬子
1004 ヴェルト Welt 瓦尔特
1005 カフカ Kafka 卡芙卡
1006 銀狼 Silver Wolf 银狼
@c2t-r
c2t-r / unexponential.md
Last active February 15, 2024 06:26
文字列に含まれる指数表記を全て小数表記に置き換える
import re

def unexponential(text: str):
    pe = r'((\d+\.\d+|\d+)e(\+|\-)[1-9]+\d*)'
    found = re.findall(pe, text)
    for i in found:
        base = i[0]
        fvalue = str(float(base))
 if "+" in i: fvalue = fvalue[0:-2]
@c2t-r
c2t-r / upperCamelize.md
Last active November 23, 2023 05:10
convert text into upper camel case string
def upperCamelize(text: str):
    lines = []
    for l in text.split("\n"):
        words = []
        for w in l.split(" "):
            w = "".join([i.title() for i in w.split("_")])
            words.append(w)
        lines.append(" ".join(words))
 return "\n".join(lines)
@c2t-r
c2t-r / alpha_draw.md
Last active December 2, 2023 09:17
PIL draw with spacing and alpha
from PIL import Image, ImageDraw, ImageFont

def drawText(bg, text: str, spacing: int, font, origin, color):
    img_clear = Image.new("RGBA", bg.size, (255, 255, 255, 0))
    draw = ImageDraw.Draw(img_clear)
    origin_x, origin_y = origin

    pads = []
    for i in text:
@c2t-r
c2t-r / WuWaCharacterIds.md
Last active June 21, 2024 05:52
Wuthering Waves (idk if it's correct)

Character ID

ID CN EN JP BirthDay
1102 散华 Sanhua 散華 1/20
1103 白芷 Baizhi 白芷 9/10
1104 凌阳 Lingyang 凌陽 8/8
1202 炽霞 Chixia 熾霞 4/18
1203 安可 Encore アンコ 3/21
1204 莫特斐 Mortefi モルトフィー 11/6
@c2t-r
c2t-r / PalworldDropIndex.md
Last active April 7, 2024 02:33
Drop item index for palworld パルワールドのパルがドロップするアイテムと確率一覧表

Palworld drop index

Drop item index for palworld
パルワールドのパルがドロップするアイテムと確率一覧表

メルパカ

  • 羊毛 x2-5

    • 100.0%
  • 革 x1

@c2t-r
c2t-r / How to install wheel on windows.md
Last active February 2, 2024 14:12
How to install wheel on windows

How to install wheel on windows

  1. run this commands on cmd to know supported package
python
>>> from pip._internal.utils.compatibility_tags import get_supported
>>> for i in get_supported(): print(i)
...

// expected output: cp312-cp312-win_amd64, cp312-abi3-win_amd64...

@c2t-r
c2t-r / sr_map_downloader.py
Created May 4, 2024 07:31
download SR map from hoyolab
import json
import os
import re
import requests
from PIL import Image
import asyncio
from io import BytesIO
lang = "en-us"
dir = "SR"
@c2t-r
c2t-r / gi_map_downloader.py
Created May 4, 2024 07:32
download GI map from hoyolab
import json
import os
import requests
from PIL import Image
import asyncio
from io import BytesIO
lang = "en-us"
dir = "GI"