Skip to content

Instantly share code, notes, and snippets.

View jnewman's full-sized avatar

Joshua Newman jnewman

  • 20:25 (UTC -08:00)
View GitHub Profile
@karpathy
karpathy / min-char-rnn.py
Last active November 17, 2024 20:43
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)
@softwaredoug
softwaredoug / hyperLogLog.c
Created February 3, 2015 04:01
Educational HyperLogLog demo in C
#include "stdio.h"
#include "stdlib.h"
unsigned int max(unsigned int a, unsigned int b) {
return a > b ? a : b;
}
unsigned int bucket(unsigned int val) {
return val & 0xF0000000 >> 28;
}
@hughsaunders
hughsaunders / Usage.txt
Created June 5, 2012 17:04
Rough script for creating jmeter slaves with the rackspace uk cloud api
Scripts:
* setup.py creates cloud instances,installs and starts jmeter-server
* cleanup.py destroys cloud instances who's name matches a pattern
Usage:
1) edit setup.py, and insert your username/api key/ssh keys. Define the number of instances you want
1a) install the dependencies listed at the top of setup.py
2) run setup.py
3) edit jmeter.properties and add the line specified at the end of setup.py's output
4) run jmeter, build a test plan, and start on all remotes.