This is a test of using the glossary directive.
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/sh | |
# Most containers do not have the sudo program installed, but this works well | |
# enough. | |
exec "$@" |
I hereby claim:
- I am tgockel on github.
- I am tgockel (https://keybase.io/tgockel) on keybase.
- I have a public key whose fingerprint is 09F3 9016 6B20 BA4B 871C B209 6B77 60BB 7758 2F79
To claim this, I am signing this object:
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
HISTFILE=~/.histfile | |
HISTSIZE=1000 | |
SAVEHIST=1000 | |
unsetopt beep | |
export MAKEFLAGS="-j9" | |
export PATH="${PATH}:/home/$(whoami)/Dropbox/bin" | |
alias dd-status-update='for x in $(pgrep -l "^dd$" | sed "s|^\([^ ]*\).*$|\1|"); do sudo kill -USR1 ${x}; done' | |
alias can-has='sudo zypper install' |
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
/** \file crc32.cpp | |
* A number of implementations of a CRC32 algorithm. This program will only work on a CPU with SSE 4.2 support. | |
* | |
* Compile with: | |
* | |
* $> g++ --std=c++17 crc32.cpp -O3 -fwhole-program | |
* | |
* The output is a CSV file showing the timings of the various implementations. | |
**/ |
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 "random_seed.hpp" | |
int main() | |
{ | |
// Just test that this compiles...not really sure what to do with these things | |
tgl::random_device_seed seed; | |
std::mt19937_64 mt_rng(seed); | |
std::minstd_rand lc_rng(seed); | |
std::ranlux48 lx_rng(seed); | |
} |
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
/** \file | |
* This is an attempt to answer the Stack Overflow question "Override method | |
* which has the same name as the class," wherein I ask how one would go about | |
* implementing a virtual method of some derived type which happens to have the | |
* same name as the method I need to implement. | |
* | |
* http://stackoverflow.com/questions/38384075/ | |
* | |
* Two methods are proposed, one using a typedef and the other using static | |
* polymorphism (see below for implementation). The conclusion is there are |