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 you don't trust the hook library at this point you might wanna | |
-- replace this with a local callback of sorts | |
hook.Add("ShouldHideFile", "", function(_, path) | |
if path:match("custom_file.lua") then return true end | |
end) | |
-- hide our detours | |
local debug_info_cache = {} | |
local old_debug_getinfo = debug.getinfo | |
function debug.getinfo(fn, ...) |
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 parse_host_name_tags(host_name) | |
local tags = {} | |
local function add_tag(tag) | |
tag = tag:Trim() | |
if #tag > 1 and #tag < 15 then | |
table.insert(tags, tag) | |
end | |
end | |
local start_index, _ = host_name:find("[%|%,%-]") |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
class Operation | |
{ | |
protected readonly Stack<Operation> operationStack; | |
protected readonly string context; |
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
using System.CodeDom.Compiler; | |
using System.Collections.Generic; | |
using System.Collections; | |
using System.ComponentModel; | |
using System.Diagnostics.CodeAnalysis; | |
using System.Globalization; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Runtime.Serialization; |
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
#include <bits/stdc++.h> | |
#include <stack> | |
using namespace std; | |
class Node { | |
public: | |
int data; | |
Node *left; | |
Node *right; |
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
#include <stack> | |
string get_sequence(vector<int> source) | |
{ | |
string ret; | |
for (int i = 0; i < source.size(); i++) | |
{ | |
ret.push_back(to_string(source[i])[0]); | |
} | |
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
module("chatsounds_parser", package.seeall) | |
function is_gmod_env() | |
return _G.VERSION and _G.VERSIONSTR and _G.BRANCH and _G.vector_origin -- these should be unique enough to determine that we're in gmod | |
end | |
lookup = {} | |
-- abstract away these methods are they are environement specific and we don't want to be constrained to gmod | |
function build_lookup() |
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 BASE_URL = "https://raw.githubusercontent.com/X4BNet/lists_vpn/main/ipv4.txt" | |
local IP_PATTERN = "(%d%d?%d?)%.(%d%d?%d?)%.(%d%d?%d?)%.(%d%d?%d?)" | |
local IP_RANGE_PATTERN = "(%d%d?%d?%.%d%d?%d?%.%d%d?%d?%.%d%d?%d?)/(%d+)" | |
local function str_to_ip(str) | |
local o1, o2, o3, o4 = str:match(IP_PATTERN) | |
o1, o2, o3, o4 = tonumber(o1), tonumber(o2), tonumber(o3), tonumber(o4) | |
return bit.bor( | |
o1 * 2 ^ 24, |
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
import { HTMLAttributes, useEffect, useRef } from "react"; | |
export default function Matrix(props: HTMLAttributes<HTMLCanvasElement> & { stripCount?: number }): JSX.Element { | |
const canvasRef = useRef<HTMLCanvasElement>(null); | |
useEffect(() => { | |
const canvas = canvasRef.current; | |
if (!canvas) return; | |
const context = canvas.getContext('2d'); |