This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tmux has-session -t ssh | |
if [ $? != 0 ] | |
then | |
tmux new-session -d -s ssh // 后台新建一个session | |
tmux split-window -h // 切割窗口 | |
tmux select-pane -t 0 // 选择0号窗口 | |
tmux send-keys "ssh zcmlc@host" C-m //向选择的窗口发送指令 | |
tmux send-keys "cd /home/zcmlc/go/src/pro" C-m | |
tmux send-keys "ctl tail -f log" C-m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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) |