Skip to content

Instantly share code, notes, and snippets.

View mitian233's full-sized avatar

Mikan Harada mitian233

View GitHub Profile
@mitian233
mitian233 / ghostty.config.yaml
Created April 28, 2026 01:05
ghostty.config.yaml
# This is the configuration file for Ghostty.
#
# This template file has been automatically created at the following
# path since Ghostty couldn't find any existing config files on your system:
#
# /Users/mikan/Library/Application Support/com.mitchellh.ghostty/config
#
# The template does not set any default options, since Ghostty ships
# with sensible defaults for all options. Users should only need to set
# options that they want to change from the default.
theme = dark:Apple System Colors,light:Apple System Colors Light
background-opacity = 0.66
background-blur-radius = 25
font-thicken = true
font-family = Zed Plex Mono
font-family = Zed Mono
font-family = ZedMono Nerd Font Mono
@mitian233
mitian233 / html-to-liquid.cjs
Created March 10, 2026 09:44
html-to-liquid.cjs
#!/usr/bin/env node
const fs = require("node:fs");
const path = require("node:path");
function getMatches(content, pattern) {
return Array.from(content.matchAll(pattern), (m) => m[0]);
}
function extractBodyInnerHtml(content) {
@mitian233
mitian233 / sf-taobao.user.js
Last active November 2, 2025 10:41
sf-taobao.user.js
// ==UserScript==
// @name 顺丰网页版淘宝发货自动填写分区号
// @namespace http://tampermonkey.net/
// @version 1.1
// @description 劫持JSON解析函数并修改客户端获取的数据,将分区号自动填写到姓名区域
// @author Mikan
// @match *://www.sf-express.com/*/*/*/home
// @grant none
// @run-at document-start
// ==/UserScript==
@mitian233
mitian233 / ver1.html
Created August 28, 2025 05:55
gradient demo
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>分层径向渐变演示</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
body {
@mitian233
mitian233 / demo.md
Last active July 30, 2025 21:47
gift.md
1000135101.mp4
@mitian233
mitian233 / use-spine.ts
Created February 8, 2025 14:20
use-spine.ts
import { spine } from './spine-widget/index.js';
const spineDir = '/spine/';
const idleMaxTime = 60000;
const edge = 40;
interface model {
name: string;
skin: string;
animations: {
start: string;
@mitian233
mitian233 / background.vue
Last active December 8, 2024 09:56
garupa bg
<script setup lang="ts">
import backgroundPatternImage from '~/assets/background_pattern.png';
import circleBaseImage from '~/assets/bg_common_circlebase.png';
import circleLineImage from '~/assets/bg_common_circleline.png';
const background = ref<HTMLCanvasElement | null>(null);
const width = ref<number>(window.innerWidth);
const height = ref<number>(window.innerHeight);
const backgroundCtx = ref<CanvasRenderingContext2D | null>(null);
const imageAsset = reactive<{
@mitian233
mitian233 / profile.vue
Last active October 22, 2024 17:06
profile.vue
<script setup lang="ts">
import { AtpAgent } from '@atproto/api'
import { NStatistic, NNumberAnimation } from 'naive-ui'
const agent = new AtpAgent({service: 'https://bsky.social'})
const session = await agent.login({identifier: '', password: ''})
const profile = await agent.getProfile({actor: session.data.did})
</script>
<template>
<div class="flex flex-row justify-center items-center">
@mitian233
mitian233 / 描画.svg
Created April 23, 2024 15:54
inkscape svgs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.