摘要:
uni.chooseImage... uni.getImageInfo({ src: res.tempFilePaths[0], success: (res) => { const blobUrl = res.path; const canvas = document.createElement(" 阅读全文
摘要:
使用 CreateToolhelp32Snapshot #include <iostream> #include <Windows.h> #include <TlHelp32.h> #include <Psapi.h> int main() { HANDLE hSnap = CreateToolhe 阅读全文
摘要:
import { Prompt } from "react-router-dom"; const Login = () => { return ( <> <Prompt message={(location, action) => { // 返回 true 表示不拦截, 你可也检查当前页面数据,提示 阅读全文
摘要:
console.log( window.crypto.randomUUID() ) See also: crypto.randomUUID() 阅读全文
摘要:
格式化单文件 $ vim s.perl -c 'normal! gg=G' -c ':wq!' 多文件,手动退出 $ vim -c ':bufdo execute "normal! gg=G" | update' ./* 阅读全文
摘要:
修改D:\dev\tool\HBuilderX\plugins\builtincef3terminal\script\main.js文件 大概16行的位置 if(isWin){ shell = 'D:\\dev\\tool\\cmder\\vendor\\git-for-windows\\bin\\ 阅读全文
摘要:
opt opt -S -instcombine src.ll -o out.ll 使用instcombine参数优化ll,很像LLVM PASS 优化器 更多的优化可以查看 opt -h clang clang.exe -emit-llvm -S main.c -o main.ll 将c代码编译为L 阅读全文
摘要:
void llvtype(std::string_view k, Value* v) { std::cout << std::format("{}:{}:{}", k, (int)v->getType()->getTypeID(), v->getName().str() ) << "\n"; } . 阅读全文
摘要:
auto llval = b.getInt32(-1); std::cout << llval->getZExtValue() << "\n"; // 无符号 std::cout << llval->getSExtValue() << "\n"; // 有符号 ConstantFP* llval = 阅读全文
摘要:
expr_1: IDENT /*yystack index 2*/ "=" /*yystack index 1*/ expr_1 /*yystack index 0*/ { $$ = new VarAssignAst($1, token::EQ, $3); } 阅读全文