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 | |
#Enables Playing on a moonlight server via an ssh tunnel. This is useful on restricted networks, as only the ssh port is needed. | |
#Needs the complimentary script, redirectudp, running on the ssh server to function. | |
#needs a private key for the ssh server | |
#sudo apt install ssh socat snap | |
#snap install moonlight |
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) |
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
// This is a simple interpreter for the untyped lambda calculus | |
// in JavaScript, used as an example of the possible benefits of | |
// hash-consing. Skip to the end of the file to see the tests. | |
// ~ SrPeixinho | |
var i32size = Math.pow(2,32); | |
var i32sizeInv = 1/i32size; | |
var stats = { | |
beta_reductions : 0, | |
reductions : 0, |