Skip to content

Instantly share code, notes, and snippets.

View stuartlynn's full-sized avatar

Stuart Lynn stuartlynn

  • Two Sigma
  • Brooklyn
View GitHub Profile
@stuartlynn
stuartlynn / 2015-08-19-webmapping.md
Last active September 25, 2015 02:20 — forked from auremoser/2015-08-19-webmapping.md
GDI - Webmap Workshop
@stuartlynn
stuartlynn / README.md
Last active September 23, 2015 14:48 — forked from mbostock/.block
Solar Terminator

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 September 14, 2015 15:35 — forked from karpathy/min-char-rnn.py
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)