This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstddef> | |
#include <initializer_list> | |
#include <iostream> | |
#include <stdexcept> | |
template <typename T> struct LLNode { | |
T val{}; | |
LLNode<T> *next{nullptr}; | |
}; |
OlderNewer