Skip to content

Instantly share code, notes, and snippets.

extern crate collections;
use std::num::from_str_radix;
use std::fmt::radix;
use std::iter::{range_step};
struct HexMap {
data: Vec<Vec<u8>>
}
impl HexMap {
@Reboare
Reboare / infer.py
Created December 29, 2012 18:59
Infer a movies attributes
'''
Infer a movies attributes by extracting data from the movie filename
@author: Josiah
'''
import re, datetime
from sys import argv, stdout
import logging
import os
@Reboare
Reboare / Graph_Generator.py
Created December 21, 2012 00:53
Waste of TIme
from numpy import array
import numpy as n
import pylab
def best_fit_line(x,y, color):
coefs = n.lib.polyfit(x,y,1)
fit_y = n.lib.polyval(coefs, x)
pylab.plot(x, fit_y, color)
Task4 = {}
@Reboare
Reboare / gist:4144240
Created November 25, 2012 16:28
Mandelbrot Generator
import numpy as np
from scipy import misc
import math
import time
"""
MANDLEBROT GENERATOR
by Josiah Beverton
Many Thanks to: