Skip to content

Instantly share code, notes, and snippets.

@WisdomCode
WisdomCode / moonlightssh.sh
Created June 5, 2019 12:14
Moonlight Game Streaming via SSH
#!/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
@karpathy
karpathy / min-char-rnn.py
Last active May 1, 2024 11:00
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
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 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,