This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM 功能:封装 ass字幕为mov格式(透明背景),支持导入Pr | |
REM 作者:Hui-Shao | |
REM 注意: 修改相应参数 | |
title 封装 ass字幕 为 mov By Hui-Shao | |
echo. | |
echo 请确认ass字幕文件位于脚本所在目录下, 并命名为 subtitle.ass | |
echo 请确认你已经 右键-编辑并修改好该脚本文件的ffmpeg命令参数 | |
echo. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main(){ | |
unsigned short score = -1; | |
printf("%u\n",score); | |
while(score++<13){ | |
score += score+++ ++score; | |
score = --score + score ++; | |
} | |
printf("%u\n",score); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
title IPv4 / IPv6 优先级选择工具 | |
mode con lines=12 cols=48 | |
color 8f | |
REM ________________________________________________________________ | |
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" | |
if '%errorlevel%' NEQ '0' ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 雨课堂显示PPT-去掉"当前页面有动画"提示 | |
// @namespace https://github.com/hui-shao | |
// @homepage https://greasyfork.org/zh-CN/scripts/447478 | |
// @homepageURL https://greasyfork.org/zh-CN/scripts/447478 | |
// @license GPLv3 | |
// @version 0.3 | |
// @description 自动移除"当前页面有动画,请听老师讲解"的遮罩(在雨课堂上课界面右上角也添加了按钮,也可手动点击) | |
// @author hui-shao | |
// @match https://*.yuketang.cn/lesson/fullscreen/v* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name MOOC互评辅助 | |
// @namespace https://github.com/hui-shao | |
// @version 0.2 | |
// @description 一键填充了属于是! | |
// @author Hui-Shao | |
// @license GPLv3 | |
// @match *://www.icourse163.org/spoc/learn/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=icourse163.org | |
// @grant none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Bilibili专栏原图链接提取 | |
// @namespace https://github.com/hui-shao | |
// @version 0.2 | |
// @description PC端B站专栏图片默认是经压缩过的webp。点击悬浮按钮,即可获取哔哩哔哩专栏中所有原图的直链,然后你可以使用其它工具批量下载原图。 | |
// @author Hui-Shao | |
// @license GPLv3 | |
// @match https://www.bilibili.com/read/cv* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=bilibili.com | |
// @grant none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit | |
net start w32time | |
w32tm /config /manualpeerlist:"ntp.ntsc.ac.cn,0x1 cn.ntp.org.cn,0x2 time.pool.aliyun.com,0x3 cn.pool.ntp.org,0x4 time.windows.com,0x5" /syncfromflags:manual /update | |
w32tm /resync /rediscover | |
net stop w32time | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
if [%1]==[] ( | |
echo ========= 使用说明========= | |
echo 请将文件拖放到该批处理上。 | |
echo 按任意键退出... | |
pause>nul | |
exit /B 1 | |
) else ( | |
del /q DiskPart_compact_temp >nul 2>nul |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
import sys | |
with Image.open(sys.argv[1]) as im: | |
im.save(input("目标文件名(含后缀): ")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
import sys | |
import os | |
photo_input_path = r'.' | |
photo_save_path = r'./new' | |
photo_list = os.listdir(photo_input_path) | |
photo_list = [os.path.join(photo_input_path,i) for i in photo_list] | |
photo_num=len(photo_list) | |
zfill_n=len(str(photo_num)) + 1 |
OlderNewer