This file contains hidden or 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
#------------------------------------------------------------------------------- | |
# author Jacob Ivan Tate | |
# date 10/17/2019 | |
# | |
cmake_minimum_required (VERSION 3.14) | |
#------------------------------------------------------------------------------ | |
# Project setup, versioning stuff here, change when changing the version | |
# Note: keep the project name lower case only for easy linux packaging support |
This file contains hidden or 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
// | |
// https://en.cppreference.com/w/User:D41D8CD98F/feature_testing_macros | |
// | |
#include <vector> | |
#if defined(__cpp_lib_filesystem) | |
#include <filesystem> | |
#else | |
#define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING | |
#include <experimental/filesystem> |
This file contains hidden or 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
//Returns the absolute path of the executable | |
std::filesystem::path file_manip::abs_exe_path() | |
{ | |
#if defined(_MSC_VER) | |
wchar_t path[FILENAME_MAX] = { 0 }; | |
GetModuleFileNameW(nullptr, path, FILENAME_MAX); | |
return std::filesystem::path(path); | |
#else | |
char path[FILENAME_MAX]; | |
ssize_t count = readlink("/proc/self/exe", path, FILENAME_MAX); |
This file contains hidden or 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
/** | |
* @file arclite_getopt.cpp | |
* @author Jacob I. Tate | |
* @brief Simple getopt style command line parser with short and long options | |
*/ | |
#include "arclite_getopt.hpp" | |
#include <cstdio> // vsnprintf | |
#include <cstdarg> // va_list | |
#include <cstring> |
This file contains hidden or 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
/*! | |
* @file crtp_allocation.cpp | |
* @brief Overriding the new and delete operators globally | |
* @author Jacob I. Tate | |
* @version 0.0.1 | |
* @date 2019 | |
*/ | |
#include <cstdlib> | |
#include <malloc.h> |
This file contains hidden or 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
/*! | |
* @file crtp_type_name.hpp | |
* @brief | |
* @author Jacob I. Tate | |
* @version 0.0.1 | |
* @date 2019 | |
*/ | |
#include <string> | |
#include <cstdlib> |
This file contains hidden or 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
/*! | |
* @file crtp_singleton.hpp | |
* @brief Singleton base class | |
* @author Jacob I. Tate | |
* @version 0.0.1 | |
* @date 2019 | |
*/ | |
#pragma once |
This file contains hidden or 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
/*! | |
* @file main.cpp | |
* @brief Task based scheduler demo | |
* @author Jacob I. Tate | |
* @version 0.0.1 | |
* @date 2019 | |
*/ | |
#include "scheduler.hpp" | |
#include <iostream> |
This file contains hidden or 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
# Enable some colorization | |
```sh | |
git config --global color.ui auto | |
``` |
This file contains hidden or 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
# Set the name attached to commits and tags | |
```sh | |
git config --global user.name "nightslashs" | |
``` | |
# Set the email address attached to commits and tags | |
```sh | |
git config --global user.email "[email protected]" | |
``` |