Skip to content

Instantly share code, notes, and snippets.

View nobuf's full-sized avatar
💭
🤔

Nobu Funaki nobuf

💭
🤔
View GitHub Profile
@nobuf
nobuf / 9x9.ipynb
Created May 28, 2019 05:47
9x9 Multiplication Table
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nobuf
nobuf / Dockerfile
Last active December 18, 2017 20:27
Simple Dockerfile for DeepSpeech
# git clone https://github.com/mozilla/DeepSpeech.git
# cd DeepSpeech
# git checkout -b v0.1.0
# vi Dockerfile
# docker build -t deepspeech .
# docker run -it -v "$PWD":/app deepspeech bash
# ./DeepSpeech.py --help
#
FROM python:2.7.14-slim-stretch
@nobuf
nobuf / index.html
Last active July 17, 2017 00:52
An exterior rings issue with MLIT's shapefile
<!DOCTYPE html>
<svg width="960" height="600"></svg>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/topojson.v3.min.js"></script>
<script>
var svg = d3.select('svg')
@nobuf
nobuf / README.md
Last active July 15, 2017 06:53
A simple map with Japan Atlas TopoJSON
@nobuf
nobuf / install_tensorflow_on_ec2_g2.sh
Created May 5, 2016 23:23
Install TensorFlow 0.8 GPU enabled on Ubuntu 14.04 EC2 g2.2xlarge
# you need to sign-up https://developer.nvidia.com/rdp/cudnn-download
scp cudnn-7.0-linux-x64-v4.0-prod.tgz ubuntu@your-ec2-instance:~/
ssh ubuntu@your-ec2-instance
curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.5-18_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb
sudo apt-get update
# see http://tleyden.github.io/blog/2015/11/22/cuda-7-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/
sudo apt-get install -y linux-image-extra-`uname -r` linux-headers-`uname -r` linux-image-`uname -r`
sudo apt-get install cuda
tar zxvf cudnn-7.0-linux-x64-v4.0-prod.tgz
@nobuf
nobuf / install
Created July 12, 2015 00:17
Stuff on Ubuntu 15.04
# see which driver should you install
sudo ubuntu-drivers devices
sudo apt-get install nvidia-346
reboot
# tweak tool for changing Caps Lock to Ctrl
# http://askubuntu.com/questions/181532/emacs-keybindings-in-ubuntu-12-04/181671#181671
# PhpStorm
sudo add-apt-repository ppa:no1wantdthisname/openjdk-fontfix
@nobuf
nobuf / gist:ed57573e9261eb41d235
Last active August 29, 2015 14:24
Stuff for Fedora22
sudo dnf -y install http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee-nonfree/fedora22/noarch/bumblebee-nonfree-release-1.2-1.noarch.rpm
sudo dnf -y install http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee/fedora22/noarch/bumblebee-release-1.2-1.noarch.rpm
sudo dnf -y install bumblebee-nvidia
sudo dnf -y install gnome-tweak-tool.noarch
@nobuf
nobuf / ilovespace.xml
Created June 29, 2015 06:20
Convert tab indent to spaces: ruleset for phpcs
<?xml version="1.0"?>
<ruleset name="ILoveSpace">
<description>Space Over Tab.</description>
<arg name="tab-width" value="4"/>
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
</ruleset>
@nobuf
nobuf / private.xml
Last active August 29, 2015 14:23
private.xml for Karabiner
<?xml version="1.0"?>
<root>
<item>
<name>Switch Input Method to Expose key</name>
<appendix>Ctrl-3 to the Expose key (F3)</appendix>
<identifier>remap.input_method_to_fkeys_f3</identifier>
<autogen>__KeyToKey__ KeyCode::EXPOSE_ALL, KeyCode::KEY_3, ModifierFlag::CONTROL_L</autogen>
</item>
</root>