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 surface = surface | |
local draw = draw | |
local Color = Color | |
surface.CreateFont("MaterialMeepen", { | |
font = "Tahoma", | |
size = 13, | |
weight = 500, | |
antialias = true, | |
extended = true |
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 hashes = include "sha_rng.lua" | |
-- if this stops working find a non hackier way to run before everything else and alone | |
for k,v in pairs(debug.getregistry()[3]) do | |
if (v == "EntityFireBullets") then | |
debug.getregistry()[3][k] = "EntityFireBullets_SPREAD" | |
break | |
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
local function encodefloat(f, bIntegral, bLowPrecision) | |
local signbit = (f <= -( bLowPrecision and COORD_RESOLUTION_LOWPRECISION or COORD_RESOLUTION )); | |
local intval = math.floor(math.abs(f)); | |
local fractval = bLowPrecision and | |
( bit.band(math.floor(math.abs(f*COORD_DENOMINATOR_LOWPRECISION)), (COORD_DENOMINATOR_LOWPRECISION-1))) or | |
( bit.band(math.floor(math.abs(f*COORD_DENOMINATOR)), (COORD_DENOMINATOR-1) )); | |
local bInBounds = intval < (2 ^ COORD_INTEGER_BITS_MP ); |
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 | |
_,b | |
a.meme()local | |
a={}local | |
c=2 | |
print(c) |
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 LOCALVERSION = 0 | |
local async_mt = {} | |
local async = setmetatable({}, async_mt) | |
async.VERSION = LOCALVERSION | |
async.await = function(fn) | |
return coroutine.yield(fn) | |
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
local clock = os.goodclock or os.clock | |
local fns = { | |
function(a,b) return a + b end, | |
function(a,b) return a - b end, | |
function(a,b) return a * b end, | |
function(a,b) return a / b end, | |
function(a,b) return a ^ b end, | |
function(a,b) return b + a 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
if (x > 2047) then | |
if (x > 3071) then | |
if (x > 3583) then | |
if (x > 3839) then | |
if (x > 3967) then | |
if (x > 4031) then | |
if (x > 4063) then | |
if (x > 4079) then | |
if (x > 4087) then | |
if (x > 4091) then |
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
#define _CRT_SECURE_NO_WARNINGS | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <direct.h> | |
static bool IsPathAbsolute(const char *path) | |
{ |
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 function wait_png(matstr) | |
local html = vgui.Create("DHTML") | |
html:AddFunction("console", "memeify", function() | |
html.done = true | |
end) | |
local mat = Material(matstr) | |
local rw, rh = mat:GetInt "$realwidth", mat:GetInt "$realheight" | |
local f = file.Open("materials/"..matstr, "rb", "GAME") | |
local cont = f:Read(f:Size()) |
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
#!/usr/bin/python | |
import sys | |
import struct | |
import idaapi | |
from idc import * | |
class NCSDLoader(object): | |
class FIRMLoader(object): |