Skip to content

Instantly share code, notes, and snippets.

View RichardKroesen's full-sized avatar
🚀
Exploring⚡️

Richard Kroesen RichardKroesen

🚀
Exploring⚡️
View GitHub Profile
@benpm
benpm / transformMap.cpp
Last active March 24, 2025 15:09
C++ Invert or Transform Map at Compile Time
/*
Transform one unordered map to another, useful for inverting maps at compile time
See it run here: https://replit.com/@_bm/transformmap
*/
#include <iostream>
#include <functional>
#include <unordered_map>
//Function which can transform an std::unordered_map of one type to another with a given transform function
@EmilienDupont
EmilienDupont / LICENSE
Last active April 27, 2026 17:10
Optimization Algorithms Visualization
The MIT License (MIT)
Copyright (c) 2016 Emilien Dupont
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: