Skip to content

Instantly share code, notes, and snippets.

View sanny-io's full-sized avatar
😄

sanny-io sanny-io

😄
View GitHub Profile
@sanny-io
sanny-io / .lua
Created February 12, 2019 19:41
Accessory
local ITEM = Clockwork.item:New("accessory_base");
ITEM.name = "Test attachment";
ITEM.cost = 0;
ITEM.model = "models/bandmodelm.mdl";
ITEM.weight = 0;
ITEM.category = "Bands";
ITEM.uniqueID = "bandm";
ITEM.business = false;
ITEM.examineOveride = true;
ITEM.description = "A band description.";
local base = _G
require("string")
require("table")
module("config")
settings = {}
function loadFunction(fct)
local old_mt = base.getmetatable(settings)
@sanny-io
sanny-io / sgminify.py
Created December 11, 2016 08:32
Sublime plugin for this thingy https://www.securegmod.com/minifier/
import sublime
import sublime_plugin
import urllib
endpoint = "https://www.securegmod.com/api/minify"
class sgminifyCommand(sublime_plugin.TextCommand):
def run(self, edit):
for region in self.view.sel():
if not region.empty():