Skip to content

Instantly share code, notes, and snippets.

@RaphGL
RaphGL / install_odin.sh
Created March 4, 2024 20:24
Install Odin compiler and LSP
#!/bin/env sh
USER_HOME=$(getent passwd $SUDO_USER | cut -d: -f6)
# where to put the odin repos
REPO_DIR=${USER_HOME}/Documents
if [ "$EUID" -ne 0 ];
then echo "Please run as root"
exit
fi
@RaphGL
RaphGL / linked_list.cpp
Created May 16, 2024 23:43
A linked list in C++ cause reasons???
#include <cstddef>
#include <initializer_list>
#include <iostream>
#include <stdexcept>
template <typename T> struct LLNode {
T val{};
LLNode<T> *next{nullptr};
};