摘要:sudo apt install gcc-multilib
阅读全文
摘要:.wslconfig [wsl2] memory = 4GB processors = 4 指定用户登录 wsl -u khd 或者 登陆后修改 sudo vim /etc/wsl.conf [user] default = khd 然后wsl --shutdown重启
阅读全文
摘要:管理员运行命令:reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve 重启就恢复win10右键了 reg.exe delete "HKCU\Soft
阅读全文
摘要:stty -F /dev/ttyS0 115200cat /dev/ttyS0 | hexdump -C
阅读全文
摘要:local function print_pack_field(s) local cnt = s:byte(5) for i = 1, #s do if i == 1 then io.write(" size: ") elseif i == 5 then io.write("\n cnt: ") e
阅读全文
摘要:Ubuntu 18.04 出现GLIBC_2.28 not found的解决方法(亲测有效)_ubuntu18.04安装glibc2.28崩溃-CSDN博客 1. 添加apt源到/etc/apt/sources.list 最后面 deb http://security.debian.org/debi
阅读全文
摘要:{BaseOnStyle: Webkit, UseTab: Always, IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman, IndentCaseLabels: true, ColumnLimit: 120}
阅读全文
摘要:#include "lprefix.h" #include "lua.h" #include "lauxlib.h" #include "lualib.h" #define BYTE_BUFFER_META_TABLE_NAME "byte_buffer*" #define GET_BYTE_BUF
阅读全文
摘要:1. 类型/协议定义 转 lua_table 2. lua_table 转 { type = {}, proto = {} }
阅读全文
摘要:local function print_r(t) local print_r_cache = {} local function sub_print_r(t, indent) if (print_r_cache[tostring(t)]) then print(indent .. "*" .. t
阅读全文
摘要:LPeg - 解析 Lua 的表达式语法 (puc-rio.br)
阅读全文
摘要:编译和链接选项-m32 apt install gcc-mutllib apt install lib32readline-dev
阅读全文
摘要:#include "util_lua.h" // 调试 // static int traceback(lua_State* L) { const char* msg = lua_tostring(L, 1); if (msg == NULL) { if (luaL_callmeta(L, 1, "
阅读全文
摘要:#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" str
阅读全文
摘要:注意: 是 luaL_setfuncs添加cclouse才有复制upval 如果只是lua_pushcclosure, 会吃掉upval, 然后f放在吃掉upval之后的top
阅读全文
摘要:MinGW中的头文件路径_mingwin32编译指定头文件-CSDN博客
阅读全文
摘要:IDEA + Vim,竟可以这么牛逼!!_vim_模式_Idea (sohu.com)
阅读全文
摘要:如何做一个左侧目录,右侧内容的网页 <html> <head> <style> #dir { float: left; width: 200px; border: solid 1px #ccc; } #content { width: 800px; border: solid 1px #0c0; }
阅读全文