Skip to content

Instantly share code, notes, and snippets.

View Tenrys's full-sized avatar

Bell Tenrys

View GitHub Profile
@NanoAi
NanoAi / blargh.lua
Last active March 26, 2018 06:45
rrrrrrrrrreeeeeeeeeeeeee
local TOOL = _G.TOOL -- Luadev makes this need to be _G.TOOL otherwise I'd use TOOL.
local liveLoad = false
local gmodTool = {}
if not TOOL then -- If the TOOL variable is not found settup a new variable.
gmodTool = weapons.Get("gmod_tool")
TOOL = getmetatable(gmodTool.Tool.weld):Create()
TOOL.Mode = "mapdefine"
liveLoad = true -- If the TOOL variable does not exist that means we are live loading.
end
@saitho
saitho / app.ts
Created November 2, 2017 21:11
Node.js Steamstore - Redeem key example
const SteamUser = require('steam-user');
const SteamTotp = require('steam-totp');
const SteamStore = require('steamstore');
const client = new SteamUser();
const steamstore = new SteamStore();
client.logOn({
"accountName": "###username###",
"password": "###password###",
@IlyaShastin
IlyaShastin / 3DPaintablePanel.lua
Last active December 16, 2020 06:36
Paint 2D in 3D on 2D screen!
if SERVER then return end
vgui.Paint3D = {} -- Table in global vgui table to hold our stuff
vgui.Paint3D.Panels = {} -- Table containing panels to be 3D painted
vgui.Paint3D.Movement = {} -- Table containing panels to be affected by movement
vgui.Paint3D.Cache = {}
--
-- Grab a few important variables for view calc and save them in the global vgui table.
@meepen
meepen / hook.lua
Last active January 2, 2022 13:55
NEW GMOD HOOKS 70,000% FASTER - new LINKED LIST version available now for purchase (FREE PRIORITIZATION INCLUDED)
hook = include "newhook.lua"
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active April 25, 2025 17:14
Hyperlinks in Terminal Emulators
@meepen
meepen / materialmeepen.lua
Last active February 5, 2017 04:38
A Derma skin for Garry's Mod. Mimics Windows 10 a bit.
local surface = surface
local draw = draw
local Color = Color
surface.CreateFont("MaterialMeepen", {
font = "Tahoma",
size = 13,
weight = 500,
antialias = true,
extended = true
@bmwalters
bmwalters / Facepunch_GLua_Wiki_Tokenizer.user.js
Last active August 30, 2016 23:29
Get the power of the GLua Wiki Tokenizer in your Facepunch [lua] tags!
// ==UserScript==
// @name Facepunch GLua Wiki Tokenizer
// @namespace zerf
// @description Get the power of the GLua Wiki Tokenizer in your Facepunch [lua] tags!
// @version 1.5
// @include https://facepunch.com/showthread.php*
// @downloadURL https://gist.github.com/bmwalters/6d4cc5499378711de0f46028e565cc8d/raw/master/Facepunch_GLua_Wiki_Tokenizer.user.js
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js
// @run-at document-start
// @grant GM_xmlhttpRequest
@JohnnyonFlame
JohnnyonFlame / good_water.kc
Last active March 5, 2016 02:36
Software water rendering in EVALDRAW
()
{
sleep(33);
cls(0);
Double p[3] = {-128, 0, 32};
proj = (xres/2) / tan(rad(70/2));
ang = 0;
for (i=0; i<yres/2 + 100; i++)
{
@Python1320
Python1320 / try_fix_spazz.lua
Last active December 18, 2015 15:09
Try to fix crouch spazzing in gmod
-- Still spazzes
--- when pushing against roof
--- When getting off grund
local ppos = Vector()
local view = { }
if GetConVar "developer":GetInt() > 0 then
RunConsoleCommand("contimes", "55")
end
@samuelmaddock
samuelmaddock / gm_sublime_glass.lua
Last active May 14, 2016 05:59
Glass effect for Garry's Mod; save in lua/autorun.
---
-- Sublime Glass - Garry's Mod
--
-- Use with the 'Sublime Text Trans' package.
-- https://github.com/vhanla/SublimeTextTrans
--
if SERVER then
AddCSLuaFile()
return