Skip to content

Instantly share code, notes, and snippets.

View sn-0w's full-sized avatar
💭
Contact over Discord: snow0013

Snow sn-0w

💭
Contact over Discord: snow0013
  • Germany
  • 06:52 (UTC +01:00)
View GitHub Profile
@sn-0w
sn-0w / cl_fontviewer.lua
Created September 17, 2025 19:24
This Lua Script reads out the Font names from all found Font files and displays them in a list ingame so you can preview and select the font you want to use faster!
local function ReadUShortBE(f)
local b1 = f:ReadByte() or 0
local b2 = f:ReadByte() or 0
return b1 * 256 + b2
end
local function ReadULongBE(f)
local b1 = f:ReadByte() or 0
local b2 = f:ReadByte() or 0
local b3 = f:ReadByte() or 0
@sn-0w
sn-0w / HollowRoundedRect.lua
Created October 2, 2023 23:53
This is a Hollow Rounded Rectangle for Garrysmod because i didnt find any online so i made my own.
local function rounded_rectangle(x, y, w, h, radius)
local polycount = 32
if polycount % 4 > 0 then
polycount = polycount + 4 - (polycount % 4)
end
local points, c, d, i = {}, {x + w / 2, y + h / 2}, {w / 2 - radius, radius - h / 2}, 0
while i < polycount do
@sn-0w
sn-0w / flat-html5-css3-login-form.markdown
Created December 20, 2021 17:54
Flat HTML5/CSS3 Login Form

Flat HTML5/CSS3 Login Form

Simple HTML5/CSS3 login form that also works as registration form. You can tweak this form further to use it as part of your web app, website or anything else.

A Pen by Aigars Silkalns on CodePen.

License.

package whitelist
import (
"encoding/json"
"flag"
"fmt"
"log"
"net"
"net/http"
"net/url"
import sys
import datetime
import dateutil
import dateutil.parser as dateutil_parser
import logging
import time
import sqlalchemy as sa
import argparse
import csv
import urllib2
package iprep
import (
"database/sql"
"flag"
"io/ioutil"
"os"
"testing"
"time"
package iprep
import (
"database/sql"
"fmt"
"hash/fnv"
"math"
"math/rand"
"strconv"
"strings"
public static void smethod_0(int int_0, int int_1, int int_2)
{
int_0--;
int_1++;
int_0 = (int_0 + 1 ^ 505596512 ^ 1371342433 ^ 505596512);
int num = int_2 & 255;
int_2 ^= num;
num += 15;
RuntimeTypeHandle handle = Class105.moduleHandle_0.ResolveTypeHandle(int_0);
int_1 = (int_1 - 1 ^ num ^ 593475365 ^ num);
@sn-0w
sn-0w / amogus.cs
Last active October 5, 2021 19:36
delegate thing idk
RuntimeTypeHandle handle1 = Program.moduleHandle.ResolveTypeHandle(1);
RuntimeMethodHandle handle2 = Program.moduleHandle.ResolveMethodHandle(2);
RuntimeFieldHandle handle3 = Program.moduleHandle.ResolveFieldHandle(3);
FieldInfo fieldFromHandle = FieldInfo.GetFieldFromHandle(handle3);
Type typeFromHandle = Type.GetTypeFromHandle(handle1);
MethodInfo methodInfo = (MethodInfo)MethodBase.GetMethodFromHandle(handle2);
FieldInfo fieldInfo = fieldFromHandle;
Type type = typeFromHandle;
MethodInfo methodInfo2 = methodInfo;
Type type2 = type;