Skip to content

Instantly share code, notes, and snippets.

View henrywoo's full-sized avatar
🎯
Focusing

Henry henrywoo

🎯
Focusing
View GitHub Profile
@henrywoo
henrywoo / init_u1904.sh
Created August 6, 2019 16:39
init_u1904.sh
export GOROOT="/opt/share/go/root"
export GOPATH="/opt/share/go/projects"
mkdir -p $GO_ROOT $GOPATH
apt update
#vscode
apt install -y software-properties-common apt-transport-https wget
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
@henrywoo
henrywoo / min-char-rnn.py
Created November 15, 2018 17:37 — forked from karpathy/min-char-rnn.py
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
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)