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
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) { |
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
<?php | |
namespace Example; | |
use Zend\EventManager\Event; | |
class ExampleEvent extends Event | |
{ | |
const EVENT_FOOBAR = 'foobar'; | |
protected $value; |
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
local mp = MediaPlayer.Create( "global" ) | |
-- only allow media which supports FFTs (remove this if you don't want it) | |
mp.ServiceWhitelist = { 'af', 'sc' } | |
if CLIENT then | |
local function audioPostDraw( media ) | |
local fft = media.fft | |
if not fft then return 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
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. | |
using UnrealBuildTool; | |
using System.IO; | |
public class CEF3 : ModuleRules | |
{ | |
public CEF3(TargetInfo Target) | |
{ | |
/** Mark the current version of the library */ |
OlderNewer