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
# Set the path to the GPerfTools library | |
find_library(GPERFTOOLS_LIBRARIES tcmalloc) | |
# Set the flags needed to build with heapcheck | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free") | |
# Add the heapcheck library to your target | |
target_link_libraries(my_target ${GPERFTOOLS_LIBRARIES}) |
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
poem() { | |
# get random poem from api | |
local poem=$(curl -s https://poetrydb.org/random | jq -r '.[0].lines[]') | |
# print poem | |
echo | |
autoload -U colors | |
colors | |
echo $bold_color "$poem" | pv -qL 7 | |
} |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug", | |
"type": "cppdbg", | |
"request": "launch", | |
// Resolved by CMake Tools: | |
"program": "${command:cmake.launchTargetPath}", | |
"args": [ |