Skip to content

Instantly share code, notes, and snippets.

View massens's full-sized avatar

Marc Assens massens

View GitHub Profile
@chrisseto
chrisseto / Handler.py
Created August 25, 2014 19:18
Streaming tornado uploads to Amazon S3
@web.stream_request_body
class UploadHandler(RequestHandler):
def prepare(self):
self.count = 0
self.buffer_len = 0
self.buffer = StringIO()
self.mp = bucket.initiate_multipart_upload('Multiparts are cool')
def data_received(self, data):
@karpathy
karpathy / min-char-rnn.py
Last active July 22, 2024 04:44
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)

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?