Note
Cpp files are creations of boredom.
- dependency-free
- tiny and compact
- ready to use
JSON file with C++ snippets for VSCode to speed up repetitive code. WIP
By including, the performance speed of the program will be measured and output at the end. If wanting to measure specific sections, use 'START_TIME(NAME);' and 'STOP_TIME(NAME);', where the 'NAME' for a section must be the same.
By including, the function 'hmac_sha256(key, message)' can be used to hash strings.
By including, the function 'sha256(message)' can be used to hash strings.
By including, gives a static currency conversion with the function 'currencyConversion(amount, currency_have, currency_want)'. The function will convert the 'amount' from 'currency_have' to 'currency_want'. The currencies are currently limited to EUR, USD, CYN, CUP, HKD, INR, JPY, KRW, SEK, TRY and VND, but can be easily expended and updated.
By including, a simple program-wide hash can be set up for all user-defined #includes. After the first program execution, the output hash should be copied at the end and pasted into 'm_program_hash'. The following code executions perform a code integrity test before the main() function is executed and provides the option to terminate the program immediately if the hashes do not match.
Tip
For best experience have "Better Comments" (VSCode) Extension by Aaron Bond.