Skip to content

Instantly share code, notes, and snippets.

View actboy168's full-sized avatar
😸

actboy168 actboy168

😸
  • China
  • 09:21 (UTC +08:00)
View GitHub Profile
@cloudwu
cloudwu / lseed.c
Created March 25, 2020 10:32
Change seed for lua 5.3
/*
Only for lua 5.3
You can use lua_changeseed(L, seed) to change a seed for a lua VM.
lua_State *L = luaL_newstate();
lua_changeseed(L, myseed);
*/
#include "lstate.h"
@Egor-Skriptunoff
Egor-Skriptunoff / utf8_filenames.lua
Last active August 30, 2023 06:45
UTF-8 filenames on Windows in pure Lua
------------------------------------------------------------------------------------------------------------------------------
-- Module: utf8_filenames
------------------------------------------------------------------------------------------------------------------------------
-- Filename: utf8_filenames.lua
-- Version: 2019-07-13
-- License: MIT (see at the end of this file)
-- This module modifies standard Lua functions so that they work with UTF-8 filenames on Windows:
-- io.open
-- io.popen