Skip to content

Instantly share code, notes, and snippets.

View sengstacken's full-sized avatar

Aaron Sengstacken sengstacken

View GitHub Profile
Start the saved VM
Open Docker Quickstart - docker run -it -p 8888:8888 gcr.io/tensorflow/tensorflow
or docker run -it -p 8888:8888 gcr.io/tensorflow/tensorflow bash
or docker run -it -p 8888:8888 gcr.io/tensorflow/tensorflow:0.12.1 bash
maybe install modules
@sengstacken
sengstacken / Git Cheat Sheat
Created February 9, 2017 15:33
Git for dummies
# create new repository (repo
git init
# check status of files
git status
# add file
git add <filename>
# commit files
1. Log into AWS
2. Select N. California as location
3. Select AMI - cs224d_tensorflow - ami-16327176
4.
OR go to EC2 > Instances > Start
ssh into machine
ssh -i cs224d_AWS.pem ubuntu@IP
# import numpy and set the printed precision to something humans can read
import numpy as np
np.set_printoptions(precision=2, suppress=True)
# set some prefs for matplotlib
import matplotlib.pyplot as plt
import matplotlib
matplotlib.rcParams.update({'text.usetex': True})
fig_width_pt = 700.  # Get this from LaTeX using \showthe\columnwidth
inches_per_pt = 1.0/72.27 # Convert pt to inches
@sengstacken
sengstacken / python_shiz.md
Last active February 5, 2019 23:15
Python Snips

Python Tips

File I/O!

f = open('workfile.b','r')
a = f.read() # or .readlines()
f.close()

f = open('workfile.b','w')