Skip to content

Instantly share code, notes, and snippets.

View idevz's full-sized avatar
🎯
WeiboMesh

周晶 idevz

🎯
WeiboMesh
View GitHub Profile
@hlissner
hlissner / codesign_gdb.md
Last active March 11, 2024 07:09
Codesign gdb on OSX
@idevz
idevz / simple.lua
Created September 8, 2015 15:56
A Simple route for vanilla
-- perf
local sgmatch = string.gmatch
-- init Simple and set routes
local Simple = {}
function Simple:new(request)
local instance = {
route_name = 'Simple',
@tylerneylon
tylerneylon / copy.lua
Last active April 10, 2024 02:29
How to deep copy Lua values.
-- copy.lua
--
-- Lua functions of varying complexity to deep copy tables.
--
-- 1. The Problem.
--
-- Here's an example to see why deep copies are useful. Let's
-- say function f receives a table parameter t, and it wants to