Skip to content

Instantly share code, notes, and snippets.

View mitian233's full-sized avatar

某M氏 mitian233

View GitHub Profile
@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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mitian233
mitian233 / 舞萌dx.svg
Created April 23, 2024 15:32
舞萌dx.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
require('readline').createInterface({input: process.stdin, output: process.stdout}).question("Enter a string: ", str => {console.log(str.split("").reverse().join(""))})