Skip to content

Instantly share code, notes, and snippets.

View arctangent's full-sized avatar

Jacob Conrad Martin arctangent

View GitHub Profile
@arctangent
arctangent / hmazed.hs
Created January 15, 2012 15:23
Simple maze generator in Haskell
// Simple maze generator in Haskell
// Jacob Conrad Martin
// http://jacobconradmartin.com
import System.Random
import Debug.Trace
import Control.Monad.State
data Location = Location { x::Int, y::Int } deriving (Eq)
data Path = Path { from::Location, to::Location } deriving (Eq)
@arctangent
arctangent / ants.pde
Created January 15, 2012 15:15
Ant Colony Simulation in Processing
// Ant Foraging Simulator
// Jacob Conrad Martin
// http://jacobconradmartin.com
import processing.video.*;
MovieMaker mm;
// *** CONFIG ***
int worldWidth = 400;
@arctangent
arctangent / evolution.d
Created January 15, 2012 14:33
Evolution in D
// Evolution experiment
// Jacob Conrad Martin
// http://jacobconradmartin.com
import std.stdio;
import std.string;
import std.random;
import std.c.time;
import std.array;
@arctangent
arctangent / evolution.c
Created January 15, 2012 14:32
Evolution in C
// Evolution experiment
// Jacob Conrad Martin
// http://jacobconradmartin.com
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
// ----------------
@arctangent
arctangent / ants.pde
Created December 30, 2011 19:11
Ant Simulation
// Ant Foraging Simulator
// Jacob Conrad Martin
// http://jacobconradmartin.com
import processing.video.*;
MovieMaker mm;
// *** CONFIG ***
int worldWidth = 400;
@arctangent
arctangent / hmazed.hs
Created December 29, 2011 10:00
Maze generator in Haskell
-- Simple maze generator in Haskell
-- Jacob Conrad Martin
-- http://jacobconradmartin.com
import System.Random
import Debug.Trace
import Control.Monad.State
data Location = Location { x::Int, y::Int } deriving (Eq)
data Path = Path { from::Location, to::Location } deriving (Eq)