This is the resource repositry for my memory managment lecture / workshop series at Breda University of applied sciences - Games. It is mainly targeted for game developers
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/bash | |
# Author: Simon Renger <[email protected]> | |
# This script will pull and build your Hugo website from a git server and then build it and move to the correct location. | |
# Simple usage:$ sh pb_hugo.sh <reponame> <folder name> <move location> | |
# example: sh pb_hugo.sh https://gitserver.tld/user/my-blog.git my-blog /home/user/www/ | |
if [ ! -d $2 ] | |
then | |
echo "Clone repo and build" | |
git clone $1 $2 && cd $2 && hugo && mv public $3 | |
else |
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/bash | |
echo "License Append script" | |
license=$1 | |
ending=$2 | |
folder=* | |
file="" | |
scan_for_folders(){ | |
for i in $folder; do | |
if [ -d $i ] | |
then |
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 <tuple> | |
//#include "memory/Allocator.h" | |
struct Blk | |
{ | |
void* ptr; | |
std::size_t size; | |
}; | |
template<typename ...Args> | |
class Alloc : public Args... |
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 <tuple> | |
///////////////////////////////////////////////// TUPLE GENERATOR ///////////////////////////////////////////////// | |
template <unsigned int N, typename T> | |
struct TupleGenerator { | |
using type = decltype(std::tuple_cat(std::tuple<T>(), typename TupleGenerator<N - 1, T>::type())); | |
}; | |
template <typename T> | |
struct TupleGenerator<0, T> { |