Skip to content

Instantly share code, notes, and snippets.

View galenguyer's full-sized avatar
🌈
they/them

Galen Guyer galenguyer

🌈
they/them
View GitHub Profile
@galenguyer
galenguyer / BeautifulDiscord.css
Last active December 1, 2017 22:20
My custom BeautifulDiscord StyleSheet
/*Channel Categories*/
.containerDefault-1bbItS{
padding-top: 11px;
}
.nameCollapsed-3_ChMu, .nameDefault-Lnjrwm, .nameHovered-1YFSWq, .nameHoveredCollapsed-2c-EHI, .nameMuted-1n0LSj, .nameUnread-WKlSv-{
text-transform: none;
font-size: 95%;
}
/*Completely hide blocked messages*/
#!/usr/bin/env python
from PIL import Image
import sys, random
image_file = './test.bmp'
zoom = 10
if len(sys.argv) != 3:
print "usage: {} <image_file> <zoom>".format(sys.argv[0])
exit(1)
using System.Collections.Generic;
using System.Linq;
namespace LogParser
{
public class LocationMap
{
public class CountryNode
{
public string name;
using System;
namespace Spinner
{ public class Spinner
{ private readonly string[] _spinner_chars = new[] {"|", "/", "-", "\\" };
private int _interval;
public Spinner()
{ this._interval = 100;
}
@galenguyer
galenguyer / CodeEval.cs
Last active February 27, 2020 01:44
Arbitrary Code Execution for C#
using System;
using System.CodeDom.Compiler;
using System.Reflection;
using System.Threading.Tasks;
/*
To execute, run
string code = "your code here";
if (!code.Contains("return")) code = "return " + code;
code = code.Trim().TrimEnd(';') + ";";