void ExecuteConsoleCommand(const FString& Command)
{
if (GEngine)
{
GEngine->Exec(GWorld, *Command);
}
}
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 | |
| # bash_var_test.sh | |
| # --- Global variable --- | |
| count=5 | |
| echo "Initially: count = $count" | |
| # --- Function that modifies it --- | |
| modify_global() { | |
| echo "Inside function (before): count = $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
| pandoc file.md -o output.pdf -V geometry:margin=1in |
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
| print("== torch-cuda test == ") | |
| try: | |
| import torch | |
| except ImportError: | |
| raise ImportError("torch not installed or found.") | |
| use_cuda = torch.cuda.is_available() | |
| print(f"Using cuda: {use_cuda}") | |
| if use_cuda: | |
| print('__CUDNN VERSION:', torch.backends.cudnn.version()) |
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
| # without saving version number | |
| dpkg --get-selections | awk '{print $1}' > installed-packages.txt | |
| # with version number | |
| dpkg-query -f '${binary:Package}=${Version}\n' -W > installed-packages-with-versions.txt | |
| # install packages from txt file | |
| xargs -a package-list.txt sudo apt-get install -y |