Skip to content

Instantly share code, notes, and snippets.

@JohnEarnest
JohnEarnest / Stop.java
Created January 8, 2013 01:19
A prototype game exploring the idea of a bullet hell space-shooter in which the player takes an entirely defensive role and must protect others in addition to themselves.
/**
* Stop
*
* A prototype game exploring the idea of a
* bullet hell space-shooter in which the
* player takes an entirely defensive role
* and must protect others in addition to
* themselves.
*
* Known issues/ things to ponder:
@eliotl
eliotl / hollowpm.py
Last active May 5, 2021 21:11
hollowPM - Hollow Phonetic Matrix module
"""
This is my Hollow Phonetics Matrix module: It is for handling different poetic
word search operations for my Flask website (https://puns.plus) It is a handler
for three large 45,000 x 45,000 nearest neighbor matrices that are too big for
me to want to load into memory. (One for overall sound similarity, one for
word2vec meaning similarity, and one for presence of individual phonetic features.)
Given different search requests, this translates from search word to vector
number, unpickles individual vectors from the disk as needed, performs the
necessary math, and then renders the results as words.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karpathy
karpathy / min-char-rnn.py
Last active April 23, 2024 17:55
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)