Skip to content

Instantly share code, notes, and snippets.

View alandefreitas's full-sized avatar
😁

Alan de Freitas alandefreitas

😁
View GitHub Profile
// Adapted from https://github.com/yruslan/term_color
#include <stdio.h>
#include <stdlib.h>
#ifndef _COLOR_H_INCLUDED
#define _COLOR_H_INCLUDED
#define CN_NO_COLOR -1
@alandefreitas
alandefreitas / futures.hpp
Last active October 4, 2022 08:44
Single-header futures library
This file has been truncated, but you can view the full file.
//
// Copyright (c) 2021 alandefreitas (alandefreitas@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
//
#ifndef FUTURES_FUTURES_HPP
#define FUTURES_FUTURES_HPP
@alandefreitas
alandefreitas / routers.md
Last active November 22, 2022 02:50
A comparison of formats used by routers in web frameworks

Routers

Summary

Pattern Number of frameworks %
:id 23 57.5%
{id} 9 22.5%
<id> 5 12.5%
regex 2 0.50%