Skip to content

Instantly share code, notes, and snippets.

View Lambdanaut's full-sized avatar
👁️‍🗨️
λ

Joshua Quirk Lambdanaut

👁️‍🗨️
λ
View GitHub Profile
@Lambdanaut
Lambdanaut / index.html
Created March 10, 2012 22:09
A Proof of Concept simulation of a bunch of different types of cells that can connect to make larger organisms. Requires JsGameSoup
<html>
<head>
<script src="jsGameSoup/js/jsgamesoup.js"></script>
<script src="jsGameSoup/js/random.js"></script>
<script src="jsGameSoup/js/sprite.js"></script>
<script src="jsGameSoup/js/collisions.js"></script>
<script src="main.js"></script>
</head>
<style>
html, body {
@Lambdanaut
Lambdanaut / love.py
Created January 20, 2012 19:26
A Genetic Algorithm that I wrote for Catherine K
#! /usr/bin/python
import random
#goal = "This message evolves like my love for you. I'll always love you, Cat. -Josh <3"
goal = "I Love You Cat"
generations = None
popSize = 25
mutation = 150 #Bigger = Less mutation
@Lambdanaut
Lambdanaut / SheezyArtSpider.hs
Created July 20, 2011 04:54
A spider for crawling Sheezyart.com and determining social connections between users. It has also been confirmed to work on Deviantart.com with slight adjustment.
module SAScan where
import Network.Shpider
import System.Posix.Unistd
import Data.List
import Char
firstUser = "theprototype"
toLoad = False
savedFile = "SASaved"
@benui-dev
benui-dev / perceptron.py
Created June 6, 2011 02:36
Playing with making a simple perceptron in Python. Used Foundations of Statistical Natural Language Processing as a reference.
# Ben's Magical Perceptron
def dot_product(a, b):
return sum([a[i]*b[i] for i in range(len(a))])
def decision( x, w, theta ):
return (dot_product(x, w) > theta)