Skip to content

Instantly share code, notes, and snippets.

View hexagon.cpp
#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;
@sppmacd
sppmacd / atomic.cpp
Created Mar 23, 2021
Atomic simulation
View atomic.cpp
// Required dependencies:
// * SFML
// * Some font, place it in res/font.ttf
#include <iostream>
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <string>
#include <sstream>
View egeNetwork.md

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 / minecraft-lang-codes.md
Last active Jul 16, 2020
Minecraft language codes (unlocalized names)
View minecraft-lang-codes.md

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"