Untrack files from git temporarily

git update-index should do what you want This will tell git you want to start ignoring the changes to the filegit update-index –assume-unchanged path/to/file When you want to start keeping track againgit update-index –no-assume-unchanged path/to/file Github Documentation: update-index

When to use reinterpret_cast?

The C++ standard guarantees the following: static_casting a pointer to and from void* preserves the address. That is, in the following, a, b and c all point to the same address: reinterpret_cast only guarantees that if you cast a pointer to a different type, and then reinterpret_cast it back to the original type, you get the original value. So in the following: a and c contain the same value, … Read more

Simple dictionary in C++

If you are into optimization, and assuming the input is always one of the four characters, the function below might be worth a try as a replacement for the map: It works based on the fact that you are dealing with two symmetric pairs. The conditional works to tell apart the A/T pair from the … Read more