Skip to content

Instantly share code, notes, and snippets.

View cgytrus's full-sized avatar

ConfiG cgytrus

View GitHub Profile
public static List<LevelSpeed> SortSpeedsModified(List<LevelSpeed> list) {
List<LevelSpeed> unsorted = new List<LevelSpeed>(list);
List<LevelSpeed> sorted = new List<LevelSpeed>();
unsorted.Sort((speed1, speed2) => speed1.offset.CompareTo(speed2.offset));
int direction = 0;
for(int i = 0; i < unsorted.Count; i++) {
if(unsorted[i].offset == 0) {
direction = Math.Sign(unsorted[i].speed);
sorted.Add(unsorted[i]);
@cgytrus
cgytrus / menu-shader.fsh
Last active September 24, 2021 13:39
ConfiG's Geometry Dash Menu Shader
// Shader made by ConfiG (Discord: ConfiG#9039)
// thanks Mat for making such a cool mod
precision highp float;
uniform vec2 resolution;
uniform float time;
uniform vec2 mouse;
uniform float pulse1;
uniform float pulse3;
@cgytrus
cgytrus / bepinex-installer.ps1
Created September 15, 2022 15:43
BepInEx installer script (BepInEx + ConfigurationManager + HookGenPatcher + LighterPatcher)
Add-Type -Assembly System.IO.Compression.FileSystem
# Install BepInEx
$ArchivePath = "./BepInEx-temp.zip"
$LatestRelease = Invoke-RestMethod -Uri https://api.github.com/repos/BepInEx/BepInEx/releases/latest -Method Get
foreach($asset in $LatestRelease.assets) {
if(!$asset.name.StartsWith("BepInEx_x64_")) {
continue
}
Invoke-WebRequest -uri $asset.browser_download_url -OutFile $ArchivePath
@cgytrus
cgytrus / Uwuifier.cs
Created March 17, 2023 13:01
c# uwuifier
// its not a nuget package yet and it doesnt have a repo so im just putting it into a gist for now
/*
MIT License
Copyright (c) 2023 ConfiG
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell