Skip to content

Instantly share code, notes, and snippets.

View joemilbourn's full-sized avatar

Joe Milbourn joemilbourn

View GitHub Profile
@joemilbourn
joemilbourn / k-means-2d.ipynb
Created October 28, 2012 22:18
Example ipython notebook file with a simple k-means algorithm
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joemilbourn
joemilbourn / bandlimited_2fsk
Created November 5, 2012 12:17
bandlimited_2fsk
{
"metadata": {
"name": "bandlimited_2fsk"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@joemilbourn
joemilbourn / mandelbrot.ipynb
Created November 5, 2012 15:19
Ipython notebook generating Mandelbrot sets
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joemilbourn
joemilbourn / parallel_mandelbrot
Created November 5, 2012 18:35
IPython notebook generating mandelbrot sets with parallel computations
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": "parallel_mandelbrot"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@joemilbourn
joemilbourn / parallel_mandelbrot_numpy.ipynb
Created November 7, 2012 11:03
Ipython notebook generating mandelbrot/julia sets in parallel using numpy
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joemilbourn
joemilbourn / test_tau.ipynb
Created November 22, 2012 16:06
IPython notebook showing incorrect rendering of tau character
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joemilbourn
joemilbourn / test.py
Last active January 25, 2021 21:05
test
from math import *
from random import *
from kandinsky import *
n = 200
nx = 320
ny = 222
fill_rect(0, 0, nx, ny, (0, 0, 0))
@joemilbourn
joemilbourn / test2.py
Last active January 25, 2021 21:24
test2
from math import *
from random import *
from kandinsky import *
n = 200
nx = 320
ny = 222
maxd = sqrt(nx**2 + ny**2)
fill_rect(0, 0, nx, ny, (0, 0, 0))
@joemilbourn
joemilbourn / ant.py
Last active January 28, 2021 09:55
ant
from kandinsky import *
from random import *
def rcolor():
return color(randint(0, 255),
randint(0, 255),
randint(0, 255))
rule = [1, -1, -1, 1]