Skip to content

Instantly share code, notes, and snippets.

View amywarble's full-sized avatar

Amy amywarble

View GitHub Profile
@amywarble
amywarble / examples.yml
Created October 3, 2019 01:21
MyCommands default commands configuration
#-----------------------------------------------------------------------------------------------------------#
# MyCommand Commands config file (last update v5.5.0) #
# #
# BukkitDev Help page : https://dev.bukkit.org/projects/mycommand/pages/getstarted #
# #
# How to make a command : (See an example command below) #
# For first, put your command name on first line #
# Now put your command_line name after the "command:" line. Don't forget the '/' before your command. #
# So, now select your command type from a predefined list putting it after "type" line #
# COMMAND TYPE LIST : #
static async Task Main()
{
var dm = new DynamicMethod("evil", typeof(bool), new[] { typeof(int) });
var il = dm.GetILGenerator();
il.Emit(OpCodes.Ldarg_0);
il.Emit(OpCodes.Ret);
var func = (Func<int, bool>)dm.CreateDelegate(typeof(Func<int, bool>));
Console.WriteLine(func(0)); // false
Console.WriteLine(func(1)); // true
@amywarble
amywarble / mods.ckan
Created October 17, 2018 22:56
my kerbal CKAN file
{
"kind": "metapackage",
"abstract": "A list of modules installed on the auto KSP instance",
"name": "installed-auto",
"license": "unknown",
"version": "2018.10.17.10.50.23",
"identifier": "installed-auto",
"spec_version": "v1.6",
"recommends": [
{
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
ckan
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0