This file contains hidden or 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 <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(); |
This file contains hidden or 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
//注意文本编码应为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++){ |
This file contains hidden or 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 <Windows.h> | |
#include <CommCtrl.h> | |
#include <iostream> | |
#include <iomanip> | |
#include <vector> | |
#include <string> | |
#include <strsafe.h> | |
struct ENTRY | |
{ |
This file contains hidden or 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
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++){ |
This file contains hidden or 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 | |
echo CPU: | |
wmic cpu get Manufacturer | |
wmic cpu get Name | |
wmic cpu get ProcessorID | |
echo Hard Disk: | |
wmic diskdrive get serialnumber | |
echo BIOS: | |
wmic baseboard get serialnumber | |
echo MAC Address: |
This file contains hidden or 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 未指定文件。 | |
goto :end | |
) | |
for %%i in (%*) do call :calchash %%i | |
:end | |
if "%~0"=="%~dpnx0" pause | |
goto :eof | |
:calchash |
This file contains hidden or 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
#!/system/bin/sh | |
if (($# < 1)) then | |
echo "未指定路径。" | |
exit 1 | |
fi | |
#通过参数指定一个目录 | |
path=$1 #定义时变量不用加$,而引用时则需要加$,若要避免歧义则需要写成${path}形式,另外=左右不能有空格 |
This file contains hidden or 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 <iostream> | |
#include <string> | |
#include "lua.hpp" | |
#pragma comment(lib,"lua54.lib") | |
#define PushFunctionToLua(lua_state,lua_cfunction) lua_register(lua_state,_CRT_STRINGIZE(lua_cfunction),lua_cfunction) | |
#define LUA_CFUNCTION(function_name,lua_state) int function_name(lua_State* lua_state) |
This file contains hidden or 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<Windows.h> | |
#include<vector> | |
#include<algorithm> | |
struct SpectrumPoint | |
{ | |
int p; | |
union{ | |
struct | |
{ |