Skip to content

Instantly share code, notes, and snippets.

Avatar

Stuart Lynn stuartlynn

  • Two Sigma
  • Brooklyn
View GitHub Profile
@stuartlynn
stuartlynn / README.md
Last active Sep 23, 2015 — forked from mbostock/.block
Solar Terminator
View README.md

The current solar terminator is shown in blue.

Thanks to Ben Elsen and NOAA for help implementing the correct equations for the position of the sun, which turned out to be quite a bit more complicated than I expected.

@stuartlynn
stuartlynn / min-char-rnn.py
Last active Sep 14, 2015 — forked from karpathy/min-char-rnn.py
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
View min-char-rnn.py
"""
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)
View 2015-08-19-webmapping.md