Skip to content

Instantly share code, notes, and snippets.

View Anime-pdf's full-sized avatar
:shipit:
losing my mind

Paul Anime-pdf

:shipit:
losing my mind
  • Ukraine, Kharkiv
  • 17:20 (UTC +03:00)
View GitHub Profile
@Anime-pdf
Anime-pdf / timeperiod.h
Created November 27, 2024 16:57
single-file timeperiod data holder
#ifndef BASE_UTILS_TIMEPERIOD_H
#define BASE_UTILS_TIMEPERIOD_H
#include <base/system.h>
#include <base/utils.h>
#include <base/math.h>
#include <regex>
#include <string>
@Anime-pdf
Anime-pdf / rainbow_generator.cpp
Last active November 27, 2024 16:58
Simple rainbow generator for ddnet-based servers
#include "rainbow_generator.h"
#include <base/color.h>
#include <base/system.h>
CRainbowGenerator *CRainbowGenerator::ms_SInstance = nullptr;
CRainbowGenerator *CRainbowGenerator::GetInstance()
{
if(ms_SInstance == nullptr)