Skip to content

Instantly share code, notes, and snippets.

View Tanimodori's full-sized avatar
🈵
Stackoverflowed

Tanimodori Tanimodori

🈵
Stackoverflowed
  • China
  • 01:09 (UTC +08:00)
View GitHub Profile
@Tanimodori
Tanimodori / healQuery.js
Last active March 24, 2025 02:02
FFLogs 减伤查询
const e=["TDDec","HDec","AInc","HHeal","DHeal"],n=["雪仇","Reprisal","リプライザル","牵制","Feint","牽制","昏乱","Addle","アドル","行吟","Troubadour","トルバドゥール","防守之桑巴","Shield Samba","守りのサンバ","即兴表演结束","Improvisation Finish","インプロビゼーション・フィニッシュ","策动","Tactician","タクティシャン","武装解除","Dismantle","ウェポンブレイク","抗死","Magick Barrier","バマジク","油性坦培拉涂层","Tempera Grease","テンペラグリース","圣光幕帘","Divine Veil","ディヴァインヴェール","武装戍卫","Passage of Arms","パッセージ・オブ・アームズ","暗黑布道","Dark Missionary","ダークミッショナリー"],s=["节制","Temperance","テンパランス","神爱抚","Divine Caress","ディヴァインカレス","命运之轮","Collective Unconscious","運命の輪","中间学派","Neutral Sect","ニュートラルセクト","太阳星座","Sun Sign","サンサイン","异想的幻光","Fey Illumination","フェイイルミネーション","野战治疗阵","Sacred Soil","野戦治療の陣","展开战术","Deployment Tactics","展開戦術","秘策","Recitation","秘策","炽天召唤","Summon Seraph","サモン・セラフィム","慰藉","Consolation","コンソレイション","疾风怒涛之计","Expedient","疾風怒濤の計","坚角清汁","Kerachole","ケーラコレ","整体论","Holos","ホーリズム","泛输血","Panhaima","パンハイマ"],c=["庇护所","Asylum","アサイラム","转化","Dissipation","転化","炽天附体","Seraphism","セラフィズム","智慧之爱","Philosophia"
@Tanimodori
Tanimodori / README.md
Created March 1, 2023 01:15 — forked from magnetikonline/README.md
List all Git repository objects by size.

List all Git repository objects by size

Summary

Bash script to:

  • Iterate all commits made within a Git repository.
@Tanimodori
Tanimodori / adb.txt
Last active March 19, 2025 08:32
Personal Adblockers
[Adblock Plus 2.0]
! Version: 0.0.1
! Title: Tanimodori's adblockers
! Last modified:
! Expires:
! Homepage:
!
! antdv.com
antdv.com##.ant-menu-submenu.ant-menu-submenu-horizontal[data-submenu-id="advanced"]
antdv.com##.ant-menu-item.ant-menu-item-only-child[data-menu-id="store"]

ScopedSlotsProxy.vue

<script lang="ts">
  import { defineComponent, h } from 'vue';

  export default defineComponent({
    name: 'ScopedSlotsProxy',
    props: ['as', 'scopedSlots'],
 setup(props, { attrs, slots }) {
@Tanimodori
Tanimodori / verify_image.py
Last active October 8, 2022 18:44
Using Python to Verify Image Integrity
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import re
import glob
from PIL import Image
my_path = "./"
files = glob.glob(my_path + "/**/*.*", recursive=True)
@Tanimodori
Tanimodori / Generics4Zod.ts
Created June 15, 2022 02:56
How to use generic types in Zod
import { z } from 'zod';
// The zod model with generics type in function form
const PaginatedList = <T extends z.ZodTypeAny>(elemType: T) =>
z.object({
// some properties omitted
url: z.string(),
data: z.array(elemType),
});
@Tanimodori
Tanimodori / RobustXMLParser.py
Last active November 9, 2019 17:24
Robust XML parser for duplicated attributes.
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Exmaple Robust XML parser which is capable of parsing duplicated attributes using html.parser.HTMLParser
Author: Tanimodori
License: Public Domain
Reference: https://stackoverflow.com/questions/31909929/webscraping-with-python3-ignoring-duplicate-attribute-errors
"""
import re
@Tanimodori
Tanimodori / openpgp.txt
Created September 18, 2017 13:04
OpenKeychain 关联用户标识
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:2c6de7b17fe731ca1e3e9fc00f0b2aae1637c972]