Skip to content

Instantly share code, notes, and snippets.

View adityathakker's full-sized avatar

Aditya Thakker adityathakker

  • Seattle
View GitHub Profile
from __future__ import division
import numpy as np
import matplotlib.pyplot as plt
import math
data = np.genfromtxt('input.txt',delimiter=',')
x = data[:,0]
y = data[:,1]
@adityathakker
adityathakker / min-char-rnn.py
Last active May 3, 2017 12:08 — 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). Updated By Aditya Thakker (@adityathakker)
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)) # gives a list of unique characters in the data
data_size, vocab_size = len(data), len(chars)
@adityathakker
adityathakker / TxHandler.java
Created February 21, 2017 04:24
Assignment 1 Code For Bitcoin And Cryptocurrency MOOC
package assignment_1;
import java.util.ArrayList;
public class TxHandler {
private UTXOPool utxoPool;
/**
* Creates a public ledger whose current UTXOPool (collection of unspent transaction outputs) is
* {@code utxoPool}. This should make a copy of utxoPool by using the UTXOPool(UTXOPool uPool)