Skip to content

Instantly share code, notes, and snippets.

View SigmaThetaTech's full-sized avatar

SigmaTech SigmaThetaTech

View GitHub Profile
@evaera
evaera / arrow-adornment.md
Last active July 8, 2023 06:22
Roblox Arrow Adornment

Roblox Arrows for 3D Visualizations

ezgif-3-d70ddeaac0db

Installation

Quick and dirty. You probably want this for debugging, so just slap this function in wherever you want it.

Minified and full versions are included below. Pick one!

@Uradamus
Uradamus / shuffle.lua
Last active April 20, 2025 18:27
A simple array shuffle function for Lua implementing the Fisher-Yates shuffle.
function shuffle(tbl)
for i = #tbl, 2, -1 do
local j = math.random(i)
tbl[i], tbl[j] = tbl[j], tbl[i]
end
return tbl
end
@alex-golovanov
alex-golovanov / CatmullRomSpline.lua
Last active April 23, 2023 20:13
Curve Fitting - Catmull-Rom spline
function smooth( points, steps )
if #points < 3 then
return points
end
local steps = steps or 5
local spline = {}
local count = #points - 1