Skip to content

Instantly share code, notes, and snippets.

Avatar
😎
I may be slow to respond.

Ken Matsui ken-matsui

😎
I may be slow to respond.
View GitHub Profile
View uBlacklist.txt
*://www.sejuku.net/*
*://kennejs.com/*
*://techacademy.jp/*
*://udemy.benesse.co.jp/*
*://(www.)?udemy.com/*
View keybase.md

Keybase proof

I hereby claim:

  • I am ken-matsui on github.
  • I am matken (https://keybase.io/matken) on keybase.
  • I have a public key ASB8keinqYGStTmc6KonZhYMCQBTroHmtkgYVRUUXIzWwQo

To claim this, I am signing this object:

View c++17-usable-check.cpp
#include <iostream>
int main() {
std::cout << 0xEp+2f << std::endl;
}
View matken-ml-happy-set.sh
#!/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
View create-image-dataset.sh
#!/bin/bash
ls *.png | awk '{ printf "mv %s %010x.png\n", $0, NR }' | sh
View ubuntu-16.04-cuda-9.0.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