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
file(GLOB_RECURSE ExpectationInputFiles CONFIGURE_DEPENDS "*.stdout" "*.stderr") | |
foreach(InputFilePath ${ExpectationInputFiles}) | |
get_filename_component(FileBaseDir ${InputFilePath} DIRECTORY) | |
get_filename_component(FileName ${InputFilePath} NAME) | |
set(OutputFilePath "${FileBaseDir}/gen/${FileName}.gen") | |
add_custom_command( | |
OUTPUT ${OutputFilePath} | |
COMMAND bash ${CMAKE_CURRENT_SOURCE_DIR}/generate-expectation-files.sh ${InputFilePath} ${OutputFilePath} | |
DEPENDS ${InputFilePath} |
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
*://www.sejuku.net/* | |
*://kennejs.com/* | |
*://techacademy.jp/* | |
*://udemy.benesse.co.jp/* | |
*://(www.)?udemy.com/* |
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
#include <iostream> | |
int main() { | |
std::cout << 0xEp+2f << std::endl; | |
} |
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
#!/bin/bash | |
curl -fsSL https://gist.githubusercontent.com/matken11235/792a0945ee3c8863cd9f8b9753a6863f/raw/2f14e71803080e4f7c72d6e32bf99e40a498409f/ubuntu-16.04-cuda-9.0.sh | bash | |
sudo apt-get install -y python3-venv | |
python3 -m venv venv | |
source venv/bin/activate | |
pip install --upgrade pip | |
pip install keras tensorflow-gpu==1.9.0 pillow | |
# tensorflow.python.framework.errors_impl.UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above. | |
# -> tensorflow-gpu==1.9.0 |
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
#!/bin/bash | |
ls *.png | awk '{ printf "mv %s %010x.png\n", $0, NR }' | sh |
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
#!/bin/bash | |
export DEBIAN_FRONTEND=noninteractive | |
export TZ=Europe/Minsk | |
sudo ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | |
sudo apt-get update | |
sudo apt-get install -y git |