This file contains hidden or 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
from __future__ import print_function | |
from __future__ import division | |
import io | |
import random | |
import numpy as np | |
from PIL import Image | |
from skimage.transform import resize | |
import quantumrandom # https://qrng.anu.edu.au/ |
This file contains hidden or 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
import os | |
import cStringIO | |
import requests | |
import wave | |
# acquire credentials at https://www.ibm.com/watson/services/text-to-speech/ | |
user_name = '' | |
password = '' |

This file contains hidden or 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
# $ docker run \ | |
# --device /dev/nvidia0:/dev/nvidia0 \ | |
# --device /dev/nvidiactl:/dev/nvidiactl \ | |
# --device /dev/nvidia-uvm:/dev/nvidia-uvm jcboyd/ubuntu-cuda-caffe | |
# Download base image | |
FROM ubuntu:16.04 | |
# Set environment variables | |
ENV PATH "/usr/local/cuda-8.0/bin:$PATH" |
NewerOlder