Skip to content

Instantly share code, notes, and snippets.

View jLn0n's full-sized avatar
💀
­

yeloicepico jLn0n

💀
­
  • Planet Earth
  • 14:05 (UTC +08:00)
View GitHub Profile
@jLn0n
jLn0n / 1daproblem.luau
Last active July 26, 2025 12:24
problem and potential solution to bundled darklua code not working for luau analysis
--!optimize 2
local __DARKLUA__
__DARKLUA__ = {
cache = {},
load = function(m)
if not __DARKLUA__.cache[m] then
__DARKLUA__.cache[m] = {
c = __DARKLUA__[m](),
}
@jLn0n
jLn0n / fast_invsqrt.luau
Last active August 3, 2025 13:18
cursed luau snippets
--!optimize 2
-- originally from: https://en.wikipedia.org/wiki/Fast_inverse_square_root
-- ported to luau
local _buf = buffer.create(8)
local function Q_rsqrt(value: number): number
buffer.writef32(_buf, 0, value)
local int_value = buffer.readu32(_buf, 0) -- converts `value` into uint32
@jLn0n
jLn0n / complex-instance-path.lua
Created June 6, 2024 16:05
pretty complex thingys
local complex_path = `workspace[""]["Fanum Tax"].Health`
for raw_path_chunk in string.gmatch(complex_path, "([^.%[%]]+)") do
local path_chunk = string.match(raw_path_chunk, "\"([%s%S]*)\"") or raw_path_chunk
print(raw_path_chunk, path_chunk)
end
@jLn0n
jLn0n / rnet-docs.md
Last active June 14, 2025 13:48
celery's rnet lib