Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul Moore paulmoore

View GitHub Profile
@paulmoore
paulmoore / base64.lua
Created May 1, 2012
URL safe Base64 in Lua
View base64.lua
--- base64.lua
--
-- https://gist.github.com/2563975
--
-- V0.3 for Lua 5.1
--
-- A simple Base64 encoder/decoder that uses a URL safe variant of the standard.
-- This implementation encodes character 62 as '-' (instead of '+') and character 63 as '_' (instead of '/').
-- In addition, padding is not used by default.
-- A full description of the specification can be found here: http://tools.ietf.org/html/rfc4648
@paulmoore
paulmoore / Animal.lua
Created Dec 4, 2011
A simple Class implementation in Lua for Object-Oriented Programming.
View Animal.lua
--- Animal.lua
--
-- A simple example of a base class usng the classes library.
--
-- @author PaulMoore
--
-- Copyright (C) 2011 by Strange Ideas Software
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
You can’t perform that action at this time.