This program uses a genetic algorithm to create 2D images inspired by pixel art. It posts them to Twitter, and posts' likes and retweets serve as input to the algorithm's fitness function. Fitter individuals are those that are more popular. Results here.
Requires Leiningen. Provide the following environment variables:
export ENV=prod
export CONSUMER_KEY=...
export CONSUMER_SECRET=...
export ACCESS_TOKEN=...
export SECRET_KEY=...
lein run
Resources: