Skip to content

Instantly share code, notes, and snippets.

@lxfly2000
lxfly2000 / booru-sites.md
Last active May 1, 2025 01:17
Booru sites.
PGraphics imgNoise[],imgCaptcha,imgBlended;
int x1=0,x2=0,recorded=0;
void setup(){
size(640,400);
imgNoise=new PGraphics[2];
for(int i=0;i<imgNoise.length;i++){
imgNoise[i]=createGraphics(width,height);
imgNoise[i].beginDraw();
for(int y=0;y<height;y++){
#include <Windows.h>
#include <CommCtrl.h>
#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <strsafe.h>
struct ENTRY
{
@lxfly2000
lxfly2000 / eoscheck.js
Created July 25, 2022 03:15
检查微软操作系统的支持状态
//注意文本编码应为ANSI
var enddates=[
{os:"Windows XP",date:"2014/4/8"},
{os:"Windows Vista",date:"2017/4/11"},
{os:"Windows 7",date:"2023/1/14"},
{os:"Windows 8.1",date:"2023/1/10"},
{os:"Windows 8",date:"2016/1/12"},
{os:"Windows 10",date:"2025/10/14"}];
var osname=new Enumerator(GetObject("winmgmts:").ExecQuery("SELECT * FROM Win32_OperatingSystem")).item().Caption;
for(var i=0;i<enddates.length;i++){
@lxfly2000
lxfly2000 / wshtest.cpp
Created July 25, 2022 09:24
VC++调用WSH(COM组件)的方法
#include <Windows.h>
#undef GetFreeSpace
//若不在行尾加no_namespace则需要在引用接口时使用IWshRuntimeLibrary命名空间
#import "C:\Windows\System32\wshom.ocx"
#include "Debug\wshom.tlh"
#pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \
processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")//使用视觉样式
int WINAPI wWinMain(HINSTANCE, HINSTANCE, LPWSTR, int)
{
SetProcessDPIAware();
@lxfly2000
lxfly2000 / retrive_removed_games.js
Created August 4, 2022 02:41
找出steam愿望单中下架的游戏
//在愿望单页面上执行以下代码即可得到AppID,然后在SteamDB上找就行了
for(var id of g_rgWishlistData){
if(g_Wishlist.rgAllApps.indexOf(id.appid.toString())==-1){
console.log(id);
}
}
@lxfly2000
lxfly2000 / createlink.hta
Created February 11, 2023 09:06
HTA程序示例
@lxfly2000
lxfly2000 / ffcut.bat
Last active June 5, 2023 06:34
用于快速剪辑视频的命令行
@echo off
::注意保存为ANSI编码格式
if "%~3"=="" (
echo 本工具可以快速剪辑视频。
echo 命令行:%~n0 ^<视频或音频文件^> ^<起始时间hh:mm:ss^> ^<结束时间hh:mm:ss^>
echo 其中时间选项可以只写到分或秒,即mmm:ss或sss.
goto:eof
)
@lxfly2000
lxfly2000 / makejre.bat
Created April 2, 2023 01:13
针对可执行JAR应用程序生成JRE目录
@echo off
setlocal EnableDelayedExpansion
::注意编码应保存为ANSI
::此处设置JDK的存放路径
set JAVA_HOME=D:\zulu11.43.55-ca-jdk11.0.9.1-win_x64
if "%~1"=="" (
echo 命令行:%~n0 ^<JAR文件^>
echo 生成的JRE目录会保存至JAR文件的相同位置。