Skip to content

Instantly share code, notes, and snippets.

View hanqin's full-sized avatar
🎯
Focusing

Han hanqin

🎯
Focusing
View GitHub Profile
@hanqin
hanqin / min-char-rnn.py
Created March 11, 2018 14:47 — 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)
@hanqin
hanqin / 0_reuse_code.js
Created August 18, 2017 03:40
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
// gist for atom
[user]
name = hqin
email = hqin@thoughtworks.com
[alias]
ci = commit
st = status
co = checkout
pr = pull --rebase
br = branch
sdc = svn dcommit