This file contains hidden or 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
#include <iostream> | |
#include <string> | |
int main() | |
{ | |
// Here are some emojis... | |
// https://apps.timwhitlock.info/emoji/tables/unicode | |
std::string bee = "\U0001F41D"; // Remember this must be 8 bytes total | |
std::cout << "To " + bee + " or not to " + bee + " that is the " + question<< std::endl; | |
return 0; |
This file contains hidden or 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
ACTION = build | |
AD_HOC_CODE_SIGNING_ALLOWED = NO | |
ALTERNATE_GROUP = staff | |
ALTERNATE_MODE = u+w,go-w,a+rX | |
ALTERNATE_OWNER = <USERNAME> | |
ALWAYS_SEARCH_USER_PATHS = NO | |
ALWAYS_USE_SEPARATE_HEADERMAPS = YES | |
APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer | |
APPLE_INTERNAL_DIR = /AppleInternal | |
APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation |
This file contains hidden or 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
#include <memory> | |
#include <string> | |
#include <cxxabi.h> | |
class Demangler | |
{ | |
public: | |
template <class T> | |
static std::string compute_object_name (T& obj) |
This file contains hidden or 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
returnToStartOfLine() | |
{ | |
printf "\b\r" | |
} |
This file contains hidden or 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
# !/bin/sh | |
function cleanup() { | |
rm -rf "${BUILD_DIR}" | |
rm -f "${LOCK_FILE}" | |
# get rid of /tmp detritus, leaving anything accessed 2 days ago+ | |
find "${BUILD_DIR_BASE}"/* -type d -atime +1 | rm -rf | |
echo "cleanup done" | |
} | |
trap cleanup TERM INT QUIT |
This file contains hidden or 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
#!/bin/bash | |
FIRST_ARG="${1:-no_first_arg}" | |
SECOND_ARG="${2:-no_second_arg}" | |
THIRD_ARG="${3:-no_third_arg}" | |
echo ${FIRST_ARG} | |
echo ${SECOND_ARG} | |
echo ${THIRD_ARG} |
This file contains hidden or 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
showCursor() | |
{ | |
tput cnorm | |
} | |
hideCursor() | |
{ | |
tput civis | |
} |
This file contains hidden or 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
printf "%.0f" 2743410360.320 |
This file contains hidden or 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
tput lines # outputs the number of lines of the present terminal window. | |
tput cols # outputs the number of columns of the present terminal window. |
This file contains hidden or 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
spinner="/-\|" | |
index=1 | |
printf "\b${spinner:index++%${#spinner}:1}" |
NewerOlder