Skip to content

Instantly share code, notes, and snippets.

View davidmerwin's full-sized avatar
🏠
Working from home

David Jeffrey Merwin davidmerwin

🏠
Working from home
View GitHub Profile
@davidmerwin
davidmerwin / learn.lua
Last active November 22, 2023 05:09 — forked from tylerneylon/learn.lua
Learn Lua quickly with this short yet comprehensive and friendly script. It's written as both an introduction and a quick reference. It's also a valid Lua script so you can verify that the code does what it says, and learn more by modifying and running this script in your Lua interpreter.
-- Two dashes start a one-line comment.
--[[
Adding two ['s and ]'s makes it a
multi-line comment.
--]]
----------------------------------------------------
-- 1. Variables and flow control.
----------------------------------------------------