Skip to content

Instantly share code, notes, and snippets.

View LeeTeng2001's full-sized avatar
📚
Learning

LeeTeng2001

📚
Learning
View GitHub Profile
@LeeTeng2001
LeeTeng2001 / CMakeLists.txt
Last active January 10, 2024 11:53
CMakeLists for building lua
cmake_minimum_required(VERSION 3.22)
project(lua_cmake)
add_executable(lua_cmake
lapi.c lctype.c lfunc.c lmathlib.c loslib.c ltable.c lundump.c
lauxlib.c ldblib.c lgc.c lmem.c lparser.c ltablib.c lutf8lib.c
lbaselib.c ldebug.c linit.c loadlib.c lstate.c ltests.c lvm.c
lcode.c ldo.c liolib.c lobject.c lstring.c ltm.c lzio.c
lcorolib.c ldump.c llex.c lopcodes.c lstrlib.c lua.c
)
@LeeTeng2001
LeeTeng2001 / school-illustrator-automate.js
Last active December 29, 2023 02:12
automate school brochures content using illustrator
// constants
var OFFSET_ARTBOARD_IDX = 8;
var ARTBOARD_LIMIT = 100;
var FILE_CONTENT_PATH = "~/Programming/WebstormProjects/personal-portfolio/content";
// parse file content into a list of object with properties
function parseTxt() {
var res = [];
var curContent = {};