Skip to content

Instantly share code, notes, and snippets.

View TannerRogalsky's full-sized avatar
💯
P I X E L S

Tanner Rogalsky TannerRogalsky

💯
P I X E L S
View GitHub Profile
local Class = setmetatable({
new = function(arg1, arg2, arg3)
local obj = {}
obj.var1 = arg1
obj.var2 = arg2
obj.var3 = arg3
obj.out = function (self, arg)
print(self[arg])
end
function love.load()
player = {
grid_x = 256,
grid_y = 256,
act_x = 256,
act_y = 256,
speed = 10
}
map = {
@TannerRogalsky
TannerRogalsky / RES Module - Subreddit Linker.js
Created July 12, 2011 03:20
A module for Reddit Enhancement Suite (RES) which finds any subreddit mentions that are not links and converts them into links.
modules['subredditLinker'] = {
moduleID: 'subredditLinker',
moduleName: 'Subreddit Linker',
options: { },
description: 'Finds any subreddit mentions that are not links and converts them into links.',
isEnabled: function() {
return RESConsole.getModulePrefs(this.moduleID);
},
include: Array(
/https?:\/\/([a-z]+).reddit.com\/user\/[-\w\.]+/i,