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
# font2asciipng.sh | |
# | |
# This script uses imagemagick to generate a simple .png | |
# texture with ascii characters [32-127] from a font. | |
# | |
# Author: Nicholas McDonald | |
# Parameters | |
FONTNAME="gohufont.otb" |
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
/*=============================================== | |
Logging Helper | |
Author: Nicholas McDonald | |
Features: | |
- Templated Recursive Value Outputs | |
- Simplified Log File Writing | |
- Arbitrary Pre-Message Blurbs |
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 <thread> | |
#include <chrono> | |
#include <atomic> | |
namespace timer{ | |
//Benchmarking Helper | |
template<typename D, typename F, typename... Args> | |
void benchmark(F function, Args&&... args){ | |
auto start = std::chrono::high_resolution_clock::now(); |
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
%{ | |
% COMSOL-MATLAB Parser | |
% | |
% Author: Nicholas McDonald | |
% Tested on COMSOL 5.3 for Linux | |
% | |
% This function will parse the COMSOL standard .txt output | |
% into a struct that is easily used in MATLAB for data vis. | |
% | |
% It returns a struct "obj" that handles times, parametric |