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
机器学习辅助作图(Machine Learning assisted sketching) | |
1. 根据部分线条或草稿生成完整干净的线稿; | |
2. 根据已完成线稿和颜色框线(提示色线,色点)上色; | |
3. 线稿:根据两(或多个)关键帧插帧线稿帧(动画应用); | |
4. 根据两(或多个)关键帧对当前线稿上色(动画应用); | |
5. 线稿:三视图(人设等)下的三维变换生成线稿。 |
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<regex> | |
//查找并返回串中的第一个子串(小括号里的),若未找到则返回空字符串 | |
std::string regex_match1(const std::string& src, const std::string& reg_str) | |
{ | |
std::regex r(reg_str); | |
std::smatch m; | |
if (!std::regex_search(src, m, r)) |
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
#python 3.7.3 | |
#encoding=utf-8 | |
import json | |
import sys | |
def srtftime(s): | |
m=int(s/60) | |
s-=m*60 | |
h=int(m/60) |
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
#python 3.7.3 | |
#encoding=utf-8 | |
import os | |
import json | |
from urllib import request | |
em_url="https://imgcache.qq.com/qqshow/admindata/comdata/vipEmoji_item_%d/xydata.json" | |
br_url="https://gxh.vip.qq.com/club/themes/mobile/bq/html/detail.html?id=%d" | |
f=open("emlist.txt","w",encoding="utf-8") |
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
#python 3.8.1 | |
#encoding=utf-8 | |
#用于输出CID码表各字符所属区间的码表分布 | |
import sys | |
table=dict() | |
def readtable(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<Windows.h> | |
#include<vector> | |
#include<algorithm> | |
struct SpectrumPoint | |
{ | |
int p; | |
union{ | |
struct | |
{ |
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
#!/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
@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
@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: |