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
chrome.webRequest.onBeforeRequest.addListener(function(pre_req) { | |
var url = pre_req.url; | |
var match = url.match("url=(.*)"); | |
if (match && match[1]) { | |
return { redirectUrl: match[1] }; | |
} | |
}, { |
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== | |
// @name acecooled | |
// @namespace http://gayyyyy.com | |
// @version 0.1 | |
// @description enter something useful | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// @match http://*facepunch.com/showthread.php?t=* | |
// @copyright 2012+, You | |
// ==/UserScript== |
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
local gmod = gmod | |
local pairs = pairs | |
local isfunction = isfunction | |
local isstring = isstring | |
local IsValid = IsValid | |
local unpack = unpack | |
module( "hook" ) | |
local Hooks = {} |
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
#ifndef _LND_H_ | |
#define _LND_H_ | |
// Includes | |
#include <mvmath.h> // This include file includes the math functions | |
#include <ddraw.h> // for DXT3 | |
// | |
// Structures |
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
local Tradable = Class(function(self, inst) | |
self.inst = inst | |
self.goldvalue = 0 | |
end) | |
function Tradable:CollectUseActions(doer, target, actions) | |
if target.components.trader and target.components.trader.enabled then | |
table.insert(actions, ACTIONS.GIVE) | |
end | |
end |
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
-- class.lua | |
-- Compatible with Lua 5.1 (not 5.0). | |
function Class(base, _ctor) | |
local c = {} -- a new class instance | |
if not _ctor and type(base) == 'function' then | |
_ctor = base | |
base = nil | |
elseif type(base) == 'table' then | |
-- our new class is a shallow copy of the base class! | |
for i,v in pairs(base) do |
NewerOlder