Skip to content

Instantly share code, notes, and snippets.

@yohannd1
yohannd1 / custom-vec.cpp
Created March 9, 2020 18:47
I tried to make a vector on C++ without using the standard library, and it is... meh, okay I guess.
#include <iostream>
#include <stdlib.h>
using std::cout;
// TODO: actually make Option<T> and Vec<T>.get() to work.
// TODO: make exceptions work or something.
template <typename T>
class Option {
@yohannd1
yohannd1 / md-tables-generator.py
Last active August 1, 2019 02:41
A python program that generates markdown tables based on lists, with support for alignment.
# Markdown Table Generator
# You can use the main function by importing it, and it won't use the table by default;
# However, if you run this file as the main program it will process the table declared below.
#
# Quick Documentation
# The first list (Align) can only receive the values 1, 0 and -1. They mean:
# 1: Align to the Right
# 0: Align to the Center
# -1: Align to the Left