Skip to content

Instantly share code, notes, and snippets.

@aaronjstar
aaronjstar / install-tensorflow.sh
Created February 3, 2017 22:59 — forked from erikbern/install-tensorflow.sh
Installing TensorFlow on EC2
# Note – this is not a bash script (some of the steps require reboot)
# I named it .sh just so Github does correct syntax highlighting.
#
# This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5
#
# The CUDA part is mostly based on this excellent blog post:
# http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/
# Install various packages
sudo apt-get update
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:recyclerview-v7:24.2.0'
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:cardview-v7:24.2.0'
androidTestCompile 'com.android.support:support-annotations:24.2.0'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
androidTestCompile 'com.android.support.test:runner:0.5'
@aaronjstar
aaronjstar / bsu.py
Created October 8, 2015 02:40
Proof of concept BSU getter
import nltk
from nltk import pos_tag, word_tokenize
def get_bsu(sentence):
pos_tagged = pos_tag(word_tokenize(sentence))
bsus = []
for word, tag in pos_tagged:
if tag == 'NNP':
bsus.append(word)