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
(function (arg) { | |
if (!arg) | |
window.activeDeleteNodeBookmarklet = true | |
else | |
window.activeDeleteNodeBookmarklet = !window.activeDeleteNodeBookmarklet | |
if ( window.activeDeleteNodeBookmarklet ) | |
console.log('DeleteNode bookmarklet activated') | |
else | |
console.log('DeleteNode bookmarklet deactivated') |
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
#pragma once | |
#include <cstdint> | |
#include <type_traits> | |
using TypeUniqueId = std::uintptr_t; | |
template <typename T> | |
constexpr TypeUniqueId typeUniqueId() | |
{ | |
return reinterpret_cast<TypeUniqueId>(&typeUniqueId<T>); |
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 | |
help() { | |
cat <<- EOF | |
Usage: $(basename $0) PATH... | |
Erase '.vscode/ipch' folders from VSCode projects in | |
the sub-directories of the supplied path. | |
PATH must be a valid folder. | |
EOF |
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 | |
## | |
## Create dev project and launch Visual Studio Code | |
## | |
if [[ $1 == '-h' || $1 == '--help' || $1 == '-?' ]] | |
then | |
Base_name="$(basename -s '.sh' $0)" | |
cat <<-EOD | |
Create a dev project based on a template and launch Visual Studio Code. |
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
#if __has_include(<experimental/filesystem>) | |
#include <experimental/filesystem> | |
namespace filesystem = std::experimental::filesystem; | |
#elif __has_include(<filesystem>) | |
#include <filesystem> | |
namespace filesystem = std::filesystem; | |
#else | |
#error "Couldn't find a standard 'filesystem' header." | |
#endif |
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 <memory> | |
/** | |
* Sample types with loud destructors | |
*/ | |
struct By_value | |
{ | |
int i; |
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 <any> | |
#include <functional> | |
#include <iostream> | |
#include <map> | |
#include <string_view> | |
#include <tuple> | |
#include <queue> | |
int main() |
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 | |
declare -ir Entry_max=15 | |
declare -ir Max_count=$((Entry_max+1)) | |
show_listing() | |
{ | |
declare -a Entries | |
for Entry in $(\ls "$1" -1tF --color=always | head -n $Max_count) |
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 | |
declare -r Base_name=$(basename -s .sh "$0") | |
help() | |
{ | |
cat <<-EOD | |
Man Grep | |
Conveniently lookup a keyword in a man page. |
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 | |
######################################################### | |
## ## | |
## Create dev project and launch Visual Studio Code ## | |
## ## | |
######################################################### | |
### Please customize here ### |
OlderNewer