Skip to content

Instantly share code, notes, and snippets.

View tenub's full-sized avatar

Joseph Chrzan tenub

  • Atlanta, GA
  • 03:31 (UTC -04:00)
View GitHub Profile
const AudioContext = window.AudioContext || window.webkitAudioContext;
const context = new AudioContext();
const osc = context.createOscillator();
osc.type = 'sine';
osc.frequency.value = 440;
osc.connect(delay);
osc.connect(context.destination);
osc.start();
osc.stop(context.currentTime + 2);
public void Event_PlayerSpawn(Event event, const char[] name, bool dontBroadcast)
{
int userid = event.GetInt("userid");
int client = GetClientOfUserId(userid);
RevokeWeapon(client, "weapon_lasergun");
}
public void RevokeWeapon(const int client, const char[] revoke_clsname)
{
#include <sourcemod>
#pragma semicolon 1
#pragma newdecls required
public Plugin myinfo =
{
name = "MOTD test",
author = "Me",
description = "MOTD test",
@tenub
tenub / Server.php
Created February 13, 2016 05:39
endo serverlist
<?php
namespace App;
use App\ServerMap as ServerMap;
use Illuminate\Database\Eloquent\Model;
class Server extends Model
{
public function __construct()