Over the past couple years in school, I've placed tremendous value in a few things:
- Comprehensive, single-document summaries of courses I've taken;
- Beautifully type-set reports;
- Writing the bare-minimum of LaTeX to get by.
| KEYMAPOPTS="us us" | |
| HOSTNAMEOPTS="-n alpine" | |
| INTERFACESOPTS="auto lo | |
| iface lo inet loopback | |
| auto eth0 | |
| iface eth0 inet dhcp | |
| hostname alpine | |
| " | |
| TIMEZONEOPTS="-z UTC" |
| """ | |
| 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) |
| interface Option<T> { | |
| map <U>(fn: (a: T) => U): Option<U>; | |
| isSome(): boolean; | |
| isNone(): boolean; | |
| isSomeAnd(fn: (a: T) => boolean): boolean; | |
| isNoneAnd(fn: () => boolean): boolean; | |
| unwrap(): T; | |
| unwrapOr(def: T): T; | |
| unwrapOrElse(f: () => T): T; | |
| map<U>(f: (a: T) => U): Option<U>; |