Skip to content

Instantly share code, notes, and snippets.

@monoclex
monoclex / cla.md
Created June 27, 2020 23:40 — forked from kitten/cla.md
MIT CLA

Individual Contributor License Agreement (CLA)

Thank you for submitting your contributions to this project.

By signing this CLA, you agree that the following terms apply to all of your past, present and future contributions to the project.

License.

You hereby represent that all present, past and future contributions are governed by the

@monoclex
monoclex / Better World.cs
Created January 12, 2019 18:00
A better version of atilla's World.cs
using Ceras;
using PlayerIOClient;
using SixLabors.ImageSharp.PixelFormats;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Decorator;
using Decorator.Attributes;
using PlayerIOClient;
using System;
namespace demo {
[Message("say")]
@monoclex
monoclex / DiscordSanitizationHepler.cs
Created August 21, 2018 23:03
Sanitize user input in discord to prevent odd formatting issues.
public static class DiscordSanitizationHelper {
private static char[] NeedsSanitation => new char[] {
'\\', '`', '-', '=', '[', ']', '\'', ',', '.', '~', '!', '@',
'#', '$', '%', '^', '&', '*', '(', ')', '_', '+', '{', '}', '|',
':', '"', '<', '>', '?', '/',
};
public static string DiscordSanitize(this string input) {
var output = input;
@monoclex
monoclex / output.txt
Last active June 3, 2018 18:15
output of MinimapViewer api
http://localhost/world/worlddata/PW01?format=json
{
"AllowPotions": false,
"BackgroundColor": "0, 0, 0",
"Crew": null,
"Description": null,
"Favorites": 53,
"Height": 25,
"HideLobby": true,