Skip to content

Instantly share code, notes, and snippets.

@sppmacd
sppmacd / minecraft-lang-codes.md
Last active July 16, 2020 12:44
Minecraft language codes (unlocalized names)

Minecraft Language Codes

MC Version: 1.16.1

  • narrator.button.accessibility ==> "Accessibility"
  • narrator.button.language ==> "Language"
  • narrator.button.difficulty_lock ==> "Difficulty lock"
  • narrator.button.difficulty_lock.unlocked ==> "Unlocked"
  • narrator.button.difficulty_lock.locked ==> "Locked"
  • narrator.screen.title ==> "Title Screen"
@sppmacd
sppmacd / egeNetwork.md
Last active December 3, 2020 11:23
egeNetwork

egeNetwork Protocol and API

Note: All listings included in this documentation are for example purposes and should not be used in production code due to potential bugs and lack of security.

EGE::EGEPacket

The EGE::EGEPacket has the following structure:

|B  |    4 bytes     |    4 bytes     |
|---|----------------|----------------|
@sppmacd
sppmacd / atomic.cpp
Created March 23, 2021 14:36
Atomic simulation
// Required dependencies:
// * SFML
// * Some font, place it in res/font.ttf
#include <iostream>
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <string>
#include <sstream>
@sppmacd
sppmacd / hexagon.cpp
Created March 20, 2022 13:53
Hexagon Tiling
#include <SFML/Graphics.hpp>
#include <SFML/Graphics/CircleShape.hpp>
#include <cmath>
#include <fmt/format.h>
#include <iostream>
#include <map>
int modulo_euclidean(int a, int b)
{
int m = a % b;