Skip to content

Instantly share code, notes, and snippets.

View shaqsnake's full-sized avatar
🌴
On vacation

shaqsnake shaqsnake

🌴
On vacation
View GitHub Profile
@niccroad
niccroad / DIContainerExample.cpp
Last active December 14, 2022 14:06
Write your own Dependency Injection container
/**
* More complete example code accompanying Write Your Own Dependency Injection Container.
* This is the most straight forward implementation of the DI container. While there is
* slightly more boilerplate there are also more customization and documentation points.
*
* Author Nicolas Croad 2019
*/
#define CATCH_CONFIG_MAIN
#include <catch.hpp>
@ryaninvents
ryaninvents / unsubmodule.md
Created May 5, 2016 13:25
Convert git submodule to regular directory

From Stack Overflow.

# Fetch the submodule commits into the main repository
git remote add submodule_origin git://url/to/submodule/origin
git fetch submodule_origin

# Start a fake merge (won't change any files, won't commit anything)
git merge -s ours --no-commit submodule_origin/master