This is a basic implementation of a neural network I wrote as a school project. It uses a genetic algorithm to train the NN(which btw doesn't even have a hidden layer). It is certainly not optimal but it works :D
If you want to make it better, I'll gladly accept your pull-request.