Skip to content

Instantly share code, notes, and snippets.

View OffenLord's full-sized avatar
いい天気だね~

cesarean OffenLord

いい天気だね~
View GitHub Profile
@tyanyaw
tyanyaw / clean-docker-for-mac.sh
Created September 2, 2023 10:20
Cleaning Docker.raw on Mac OS
#!/bin/bash
# Copyright 2017 Théo Chamley
# 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 copies of the Software, and to permit persons
# to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or
@Brian1KB
Brian1KB / AnvilProviderFactory.cs
Created July 4, 2017 20:57
This is a factory for efficiently creating anvil world providers that can be safely re-used
using System.Collections.Generic;
using MiNET;
using MiNET.Utils;
using MiNET.Worlds;
namespace Network
{
public class AnvilProviderFactory
{
private static readonly Dictionary<string, AnvilWorldProvider> ProviderCache = new Dictionary<string, AnvilWorldProvider>();