Skip to content

Instantly share code, notes, and snippets.

@sacko87
sacko87 / Base.cpp
Last active June 26, 2024 23:37
Factory Pattern in C++ with templates (using the confusingly recurring template and registry patterns)
#include "Base.h"
Base::Base() :
IsRegistered_(false)
{ }
Base::Base(bool isRegistered) :
IsRegistered_(isRegistered)
{ }
@ewquon
ewquon / amrex.vim
Created June 22, 2022 21:34
Vim syntax highlighting for amrex input files
" Vim syntax file
" Language: Input file for AMReX codes, based on "dosini" syntax v2.1
" Version: 2.1
" Homepage:
" Last Change: 2022 June 22
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
if version < 600