This file contains hidden or 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
| package main | |
| /** | |
| Example hack to encrypt a file using a GPG encryption key. Works with GPG v2.x. | |
| The encrypted file e.g. /tmp/data.txt.gpg can then be decrypted using the standard command | |
| gpg /tmp/data.txt.gpg | |
| Assumes you have **created** an encryption key and exported armored version. | |
| You have to read the armored key directly as Go cannot read pubring.kbx (yet). |
This file contains hidden or 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) |