Skip to content

Instantly share code, notes, and snippets.

View ken-matsui's full-sized avatar
💭
I may be slow to respond.

Ken Matsui ken-matsui

💭
I may be slow to respond.
View GitHub Profile
@ken-matsui
ken-matsui / GenerateFiles.cmake
Created May 26, 2022 09:41
Generate files with detecting changed files in CMake
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}
*://www.sejuku.net/*
*://kennejs.com/*
*://techacademy.jp/*
*://udemy.benesse.co.jp/*
*://(www.)?udemy.com/*
#include <iostream>
int main() {
std::cout << 0xEp+2f << std::endl;
}
#!/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
#!/bin/bash
ls *.png | awk '{ printf "mv %s %010x.png\n", $0, NR }' | sh
#!/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