This file contains 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
start srcds_fastdl.py "/source" "/target" |
This file contains 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
function GM:PostDrawViewModel( vm, ply, weapon ) | |
if ( !IsValid( weapon ) ) then return false end | |
if ( weapon.UseHands || !weapon:IsScripted() ) then | |
local hands = ply:GetHands() | |
if ( IsValid( hands ) ) then | |
hands:DrawModel() | |
end |
This file contains 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 math = math | |
function ScreenRadialClamp(x,y,padding) | |
local w, h = ScrW(), ScrH() | |
local ratio = w / h | |
-- Default padding is 10% of the screen height | |
padding = padding or h * 0.1 |
This file contains 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
package main | |
import ( | |
"net" | |
"os" | |
"bytes" | |
"encoding/binary" | |
"fmt" | |
"time" | |
) |
This file contains 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 not SERVER then return end | |
local STREAM_API_URL = "https://api.twitch.tv/kraken/streams/%s" | |
local STREAM_HOSTNAME = "%s | twitch.tv/%s" | |
local CvarFlags = { FCVAR_ARCHIVE, FCVAR_DONTRECORD } | |
local TwitchPingDelay = CreateConVar( "twitch_pingdelay", 2 * 60, CvarFlags, | |
"Frequency in which the Twitch.TV stream will be pinged." ) | |
local TwitchChannelCvar = CreateConVar( "twitch_channel", "", CvarFlags, | |
"Twitch.TV channel to append to the server hostname." ) |
This file contains 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
-- | |
-- Garry's Mod Lua virus fix instructions | |
-- | |
-- Save under lua/autorun to alert clients that they're infected. | |
-- This will open an HTML window directing them how to clean their | |
-- files. | |
-- | |
if SERVER then | |
AddCSLuaFile() |
This file contains 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 browserpool then return end -- ignore Lua refresh | |
local table = table | |
local vgui = vgui | |
_G.browserpool = {} | |
-- | |
-- Debug variable which will allow outputting messages if enabled. | |
-- @type boolean |
This file contains 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
--=============================================================================-- | |
-- | |
-- This file has been modified to remove any audio that plays on loading screens. | |
-- https://gist.github.com/samuelmaddock/bb2f643ac95dcc6a56e9 | |
-- | |
--=============================================================================-- | |
g_ServerName = "" | |
g_MapName = "" | |
g_ServerURL = "" |
This file contains 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
--- | |
-- Sublime Glass - Garry's Mod | |
-- | |
-- Use with the 'Sublime Text Trans' package. | |
-- https://github.com/vhanla/SublimeTextTrans | |
-- | |
if SERVER then | |
AddCSLuaFile() | |
return |
This file contains 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
var fs = require('fs'); | |
var files = fs.readdirSync('.'); | |
var UNICODE_PATTERN = /#U([\d\w]{4})/gi; | |
for (var i = 0; i < files.length; i++) { | |
var filename = files[i]; | |
if (!UNICODE_PATTERN.test(filename)) { continue; } | |
var fixedFilename = filename.replace(UNICODE_PATTERN, function (match, grp) { |
OlderNewer