This file contains hidden or 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
// ==UserScript== | |
// @include *love2d.org/forums/viewtopic.php* | |
// ==/UserScript== | |
(function(){ | |
function getElementsByTagAndClass(tag, cls) { | |
var tags = document.getElementsByTagName(tag); | |
var ret = []; | |
for (var i = 0; i < tags.length; ++i) { | |
if (tags[i].className.indexOf(cls) > -1) | |
ret.push(tags[i]); |
This file contains hidden or 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
love=${HOME}/.bin/love # location of love binary | |
zip=/usr/bin/zip # location of zip | |
luac=/usr/bin/luac # location of luac | |
# name of the .love | |
game= | |
# source files. if you have subdirectories, add */*.lua | |
sources=*.lua | |
# resource files like images, fonts and sounds. | |
res= |
This file contains hidden or 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
function listTable(tbl, prefix) | |
local prefix = prefix or "" | |
for i,t in pairs(tbl) do | |
if type(t) == "table" then listTable(t, prefix.."."..i) | |
elseif type(t) == "function" then print(prefix.."."..i) end | |
end | |
end | |
function love.load() | |
listTable(love, "love") |
NewerOlder