Preliminary Updates and Installations
(http://markus.com/install-theano-on-aws/)
sudo apt-get update
sudo apt-get -y dist-upgrade
#include "ofMain.h" | |
#include "ofxTiming.h" | |
class ofApp : public ofBaseApp { | |
public: | |
ofVideoGrabber grabber; | |
DelayTimer delay; | |
ofTrueTypeFont font; | |
string description; | |
#!/usr/bin/env python | |
from github import Github | |
import urllib2 | |
import codecs | |
import sys | |
import re | |
UTF8Writer = codecs.getwriter('utf8') | |
sys.stdout = UTF8Writer(sys.stdout) | |
oauthToken = open('.oauthToken', 'r').read() |
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
Preliminary Updates and Installations
(http://markus.com/install-theano-on-aws/)
sudo apt-get update
sudo apt-get -y dist-upgrade
# This code uses Biopython to retrieve lists of articles from pubmed | |
# you need to install Biopython first. | |
# If you use Anaconda: | |
# conda install biopython | |
# If you use pip/venv: | |
# pip install biopython | |
# Full discussion: |
#!/usr/bin/env python | |
############################### README ############################### | |
# External dependencies: | |
# * libmagic | |
# * python-dateutil | |
# * python-magic | |
# * requests | |
# | |
# The shell command call at the end was tested with GNU date from GNU |
Unfortunately, the Cisco AnyConnect client for Mac conflicts with Pow. And by "conflicts", I mean it causes a grey-screen-of-death kernel panic anytime you connect to the VPN and Pow is installed.
As an alternative, there is OpenConnect, a command-line client for Cisco's AnyConnect SSL VPN.
Here's how to get it set up on Mac OS X:
OpenConnect can be installed via homebrew:
brew update
brew install openconnect
import re | |
try: | |
from HTMLParser import HTMLParser # python 2 | |
except ImportError: | |
from html.parser import HTMLParser # python 3 | |
class HTMLStripperParser(HTMLParser): | |
"""Simple, stupid parser to remove all HTML tags from | |
a document. The point is to just get a the data. |