A character-level LSTM implementation that connects recurrent modeling theory with gated sequence generation in code.