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
#encoding=utf-8 | |
#Python 生成器的应用 | |
#把普通的遍历完后产生返回的集合对象过程(整体返回)改为一边遍历一边返回集合中对象的过程(交错返回) | |
def GetSomeNumbers(stopTag): | |
if stopTag==0: | |
print("遍历所有数值") | |
if stopTag==1: | |
return | |
yield 213 |
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
--Lua 协程测试 | |
require "alien" | |
alien.kernel32.Sleep:types{ret="void","ulong",abi="stdcall"} | |
function sleep(milliseconds) | |
alien.kernel32.Sleep(milliseconds) | |
end |
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
#coding=utf-8 | |
#Python 3.7 | |
#运行时将此文件放在Bilibili下载目录中 | |
#对目录中所有文件夹,若发现文件夹含有同名的.dvi文件且没有cover图片,则下载文件中CoverURL的图片到cover.[CoverURL的扩展名] | |
import os | |
import json | |
from urllib import request | |
def downloadFromURL(src_url,save_name): |
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。 | |
@echo off | |
::设定收藏图片的位置 | |
set fav_dir=D:\Yueyu\图片\收藏 | |
if "%~1"=="" ( | |
call :alert 未指定文件。 | |
goto :eof | |
) | |
if not exist "%~1" ( |
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
Windows Registry Editor Version 5.00 | |
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles] | |
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\Unmanaged] | |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced] | |
"ShowSecondsInSystemClock"=- |
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
//https://blog.csdn.net/xfgryujk/article/details/50478295 | |
#include<Windows.h> | |
#include<TlHelp32.h> | |
#include<iostream> | |
//https://gist.github.com/lxfly2000/d7a2eba66c4038002b93e0dd94e81317 | |
DWORD QueryFirstPIDOfProcessName(LPCWSTR pn) | |
{ | |
PROCESSENTRY32 pe; |
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 | |
setlocal enabledelayedexpansion | |
set ADB_PATH=D:\Android\Sdk\platform-tools\adb.exe | |
set DEVICE_CACHE_PATH=/sdcard/Android/data/com.bilibili.app.in/download | |
set LOCAL_CACHE_PATH=D:\Yueyu\Bilibili\download | |
set INCLUDE=0 | |
if /i "%~2"=="video" set INCLUDE=1 | |
if /i "%~2"=="bangumi" set INCLUDE=2 | |
if /i "%~2"=="all" set INCLUDE=3 |
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 | |
netsh interface ipv6 set dnsservers WLAN dhcp | |
if %errorlevel%==0 goto:eof | |
echo 这个操作需要管理员权限…… | |
mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~0 %*","%cd%","runas",1)(close) |
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<atlmem.h> | |
#include<tchar.h> | |
#include<assert.h> | |
#include<time.h> | |
#define HC(e)assert(SUCCEEDED(e)) | |
TCHAR output[4096]{}; |