Skip to content

Instantly share code, notes, and snippets.

View LiuQixuan's full-sized avatar
🎯
Focusing

刘祺轩 LiuQixuan

🎯
Focusing
  • AIUSOFT
View GitHub Profile
@LiuQixuan
LiuQixuan / ExamQuestionBankDomAnalysis.js
Created March 8, 2019 04:33
ExamQuestionBankDomAnalysis
container = document.getElementById('Exam')
for (var i = 1; i <126; ++i) {
tmp_str = container.children[i].getAttribute('name');
console.log("<br><br>");
var flag = parseInt(tmp_str.split('x')[1]);
if (flag>115){
console.log(document.getElementsByClassName('QClick')[i-1].innerText);
console.log('<br>'+document.getElementsByClassName('dis')[i-1].innerText);
}else{
console.log( document.getElementsByClassName('dis')[i-1].innerHTML);
@LiuQixuan
LiuQixuan / matploylib.config
Last active March 15, 2019 05:37
matplotlib 能用的中文字体
goodfont=[
'Adobe Heiti Std',
'Arial Unicode MS',
'DengXian',
'SimHei',
'STKaiti',
'STXihei',
]
程序中有效:
@LiuQixuan
LiuQixuan / python turtle Barrage.py
Created June 26, 2020 12:38
基于turtle实现弹幕
import turtle as t
import time
import random
"""
这里修改窗口大小,例如
SWIDTH = 1920
SHEIGHT = 1080
"""
SWIDTH = 960
SHEIGHT = 540
@LiuQixuan
LiuQixuan / Fraction.py
Last active July 3, 2020 05:15
支持四则运算的分数类
##! %Python_Home%/python3
#-*- coding:utf-8 -*-
#@Time: 2020-07-01
#@Author: LiuQixuan
#@Email: [email protected]
#@File: Fraction.py
#@Description: Fraction 类为一个支持四则运算的分数类,构造函数接受可变长参数.表示为"分子/分母",仅支持真分
# 数假分数表示,不支持带分数表示.
# 参数说明:构造函数可接受单个字符型参数或多个整数浮点字符混合参数,但是最终处理参数不多于一个.无参数时
# 返回自然数1的分数形式.构造参数一般形态{4/5},接受浮点型{5/1.2},{3.4/1.3}, {2.7/3}等出现浮点型时自动
@LiuQixuan
LiuQixuan / gist:7a8683ede4b885a6df834ceeb933d1c5
Last active November 9, 2025 15:10
油猴插件(在灵梦御所显示下载链接)
// ==UserScript==
// @name 在灵梦御所显示下载链接
// @name:en Show Download info on Reimu.net
// @namespace http://reimu.net/
// @version 0.9
// @description 在灵梦御所显示使用pre标签包裹的下载链接
// @description:en Show download info what wrap by pre element on "reimu.net".
// @author AIUSoft
// @license MIT
// @supportURL https://gist.github.com/LiuQixuan/7a8683ede4b885a6df834ceeb933d1c5
@LiuQixuan
LiuQixuan / gist:323e58b3e743ccb7fbc2f5c644f82618
Last active February 25, 2024 19:55
油猴插件(从chrome插件市场下载crx文件)
// ==UserScript==
// @name 从chrome插件市场下载crx文件
// @name:en download crx from chrome extention store
// @namespace https://chrome.google.com/
// @version 0.3
// @description 给chrome插件市场页面添加一个下载crx文件的按钮
// @description:en Add a button what click to download crx from chrome extention store
// @match https://chrome.google.com/webstore/detail/*
// @author Arcret
// @license MIT
@LiuQixuan
LiuQixuan / InstallHdiff.ps1
Last active April 26, 2024 13:09
Install game_hdiff.zip for GenshinImpact
#先读我!
#$HdiffFilePath 为 升级包 完整路径
#$GamePath 为 游戏完整路径(非启动器路径)
#$ToolPath 为 hpatchz.exe 完整路径(如果有官方启动器就填写启动器完整路径,如果没有去该地址下载:https://github.com/sisong/HDiffPatch/releases)
param($HdiffFilePath="H:\GameSetup\setup\Genshine Impact\game_2.8.52_2.8.53_hdiff_tODgBJm8uenIGUX5.zip",$GamePath="H:\Games\Genshin Impact\Genshin Impact game")
$ToolPath = 'G:\ProgramFiles\hdiffpatch_v4.1.3'
$github = "https://gist.github.com/LiuQixuan/1a3810046c1152808fc9d65c699f8d8d"
$host.ui.RawUI.WindowTitle = "Install game_hdiff.zip for GenshinImpact"
@LiuQixuan
LiuQixuan / config(CNREL WIN).ini
Created September 6, 2023 15:49
Genshin Impact game config.ini
[General]
channel=1
cps=mihoyo
game_version=4.0.0
sub_channel=1
plugin_7_version=1.0.0
@LiuQixuan
LiuQixuan / deleteOldFiles.ps1
Last active September 7, 2023 02:04
[GenshinImpact][YuanShen][原神]deleteOldFiles
$deleteFilesPath = ".\deletefiles.txt"
$GamePath = "E:\Games\Genshin Impact\Genshin Impact game"
$github = "https://gist.github.com/LiuQixuan/2b829d4ebe0039efa1ed7135895c0731"
function Protect-Exit([string]$keyValue='.',[string]$addtext=''){
if($addtext -ne ''){
$addtext = "`t" + $addtext
}
$keyText = ''
if($keyValue -eq '.'){
@LiuQixuan
LiuQixuan / CopyGameWithSybolicLink.ps1
Last active February 25, 2024 19:54
使用软链接的方式由已经安装的(国际服/国服)游戏客户端创建一个国服/国际服客户端.(Use sybolic link copy existing game folder to another HoYoverse service client.)