Skip to content

Instantly share code, notes, and snippets.

View ryandvmartin's full-sized avatar

Ryan Martin ryandvmartin

View GitHub Profile
@karpathy
karpathy / min-char-rnn.py
Last active July 24, 2024 18:36
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)
@meirbon
meirbon / Installing elementary on XPS 9560
Last active March 13, 2023 14:00
Install guide for Elementary OS on Dell XPS 15 9560
# Install Elementary like you normally would, after install disable dGPU
# If you don't need your dGPU in Linux: https://gist.github.com/jseris/a740f6a3fb0d18064e26dc66f9be4f1d
# If you want to use your Nvidia GPU:
sudo apt install nvidia-375 nvidia-prime
##### Seems this is fixed #####
# Don't restart yet, the version of nvidia-prime that is shipping does not work
# cd /usr/bin && sudo mv prime-select prime-select.old
# sudo wget https://raw.githubusercontent.com/C11235/nvidia-prime-bugfix/master/prime-select && sudo chmod 755 prime-select
@goerz
goerz / Elements of Statistical Learning.md
Last active June 21, 2024 04:08
PDF bookmarks for "Hastie, Tibshirani, Friedman - The Elements of Statistical Learning" (LaTeX)

This gist contains out.tex, a tex file that adds a PDF outline ("bookmarks") to the freely available pdf file of the book

The Elements of Statistical Learning (2nd ed), by Trevor Hastie, Robert Tibshirani, and Jerome Friedman

https://web.stanford.edu/~hastie/ElemStatLearn/

The bookmarks allow to navigate the contents of the book while reading it on a screen.

Usage