Skip to content

Instantly share code, notes, and snippets.

View post2web's full-sized avatar

Ivelin Angelov post2web

  • Intuit Inc
  • Mountain View, CA
View GitHub Profile
@post2web
post2web / autoreload.md
Created May 3, 2018 19:54 — forked from deehzee/autoreload.md
Auto reload of modules in jupyter notebook

Module autoreload

To auto-reload modules in jupyter notebook (so that changes in files *.py doesn't require manual reloading):

# for auto-reloading external modules
# see http://stackoverflow.com/questions/1907993/autoreload-of-modules-in-ipython
%load_ext autoreload
%autoreload 2
@post2web
post2web / gcloud-port-forward.md
Last active March 30, 2018 03:40 — forked from jibs/gcloud-port-forward.md
port forwarding with a google cloud instance

gcloud compute ssh instance-0 --ssh-flag="-L 8888:localhost:8888"

@post2web
post2web / tensorflow-gpu-setup.sh
Last active March 30, 2018 18:02 — forked from mjdietzx/waya-dl-setup.sh
Install CUDA 9, cuDNN v7.1, tensorflow-gpu on Ubuntu 16.04
# cuda 9
wget https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/cuda-repo-ubuntu1704-9-0-local_9.0.176-1_amd64-deb
sudo dpkg -i cuda-repo-ubuntu1704-9-0-local_9.0.176-1_amd64-deb
sudo apt-key adv --fetch-keys \
http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
sudo apt-get update
sudo apt-get install cuda-9-0
# cuDNN 7.05
@post2web
post2web / tf_rotating_gpu_buffer.py
Created February 10, 2017 02:28 — forked from TimZaman/tf_rotating_gpu_buffer.py
Tensorflow Rotating GPU Buffer
# Implementation of a rotating buffer on the GPU of size 2.
import threading
import tensorflow as tf
from tensorflow.python.client import timeline
import numpy as np
import time
params = {
'batch_size': 128,
'seg_len': 4000,