View CubeTimer.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Cube Timer | |
Version 3.1 | |
]] | |
local start_keys = {"lctrl", "ralt"} | |
local start_keys_down = {false, false} | |
local keys_down = false | |
local keys_down_last = false |
View cube.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var size=3; | |
var seqlen=30; | |
var numcub=5; | |
var mult=false; | |
var cubeorient=false; | |
var colorString = "yobwrg"; //In dlburf order. May use any colours in colorList below | |
// list of available colours | |
var colorList=new Array( | |
'y', "yellow", "yellow", |
View luby.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Luby 1.0 | |
function construct_iterator(n) | |
local at = 0 | |
return function() | |
at = at + 1 | |
return n[at] | |
end, n | |
end |
View format.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return { | |
["html"] = { | |
value_process = function(source) | |
if (type(source) == "string") then | |
return source:gsub("\n", "\n<br />") | |
else | |
return source | |
end | |
end, | |
extension = ".html", |
View minify.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Lua Minify 1.0 | |
Usage: | |
lua minify.lua comments DIRECTORY | |
strips comments from all .lua files in the directory, recursively, and puts them in DIRECTORY/minified | |
lua minify.lua minify DIRECTORY | |
strips comments and minifies code from all .lua files and places them like the prior command. | |
]] |
View build-love.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo LOVE Install for Fedora Initialized | |
pause | |
yum install gcc gcc-c++ automake libtool SDL2 SDL2-devel openal openal-devel luajit luajit-devel DevIL DevIL-devel freetype-devel libmodplug libmodplug-devel physfs physfs-devel libvorbis-devel | |
platform/unix/automagic | |
./configure | |
make | |
make install | |
echo Complete! |
View graph.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
PUBLIC DOMAIN | |
Where this designation is not recognized, you are | |
permitted to copy, modify, and distribute this code | |
without restriction. | |
Lucien Greathouse | |
(LPGhatguy) | |
]] |
View synth.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
PUBLIC DOMAIN | |
Where this designation is not recognized, you are | |
permitted to copy, modify, and distribute this code | |
without restriction. | |
Lucien Greathouse | |
(LPGhatguy) | |
]] |
View notimagefontfont.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local infont | |
local outfont | |
local glyphstring = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789`~!@#$%^&*()-=_+[]{}\\|;:'\",./<>?" | |
local teststring = [[ | |
Who packed five dozen old quart jugs in my box? | |
Prating jokers quizzically vexed me with fibs. | |
Brawny gods just flocked up to quiz and vex him. | |
Watch "Jeopardy!", Alex Trebek's fun TV quiz game. | |
]] | |
local border = 2 |
View oops.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--usage: require("oops") | |
local rawset, tostring = rawset, tostring | |
local meta = { | |
__mode = "v", | |
__index = function(self, index) | |
return tostring(index) | |
end, | |
__newindex = function(self, index, value) | |
rawset(self, tostring(index):upper(), value) | |
end |
OlderNewer