February 2010
1 post
Extending Fractals
So last time I posted about fractals, I gave you guys some code to render a monochrome Mandelbrot Set. Granted it’s cool, how about we throw some color into the mix?
As I explained in the last post, the mandelbrot set is colored if the iteration z(c) stays contained within z(c) < 2. So to color it, we will select appropriate hues based how quickly the complex point (x, yi) exceeds 2....
December 2009
3 posts
Google Open Source Project - Prettify →
Totally necessary for posting code anywhere. Makes syntax highlighting a cinch. Bet you didn’t know about this one.
/prez
Mandelbrot Set in Python
The Mandelbrot Set is sexy as hell, there’s no getting past that. Learning about it for 15 minutes in my Algebra II class years ago was more confusing than anything for my fellow classmates, thanks to an atrocious teacher, but my curiosity was sparked. I had started coding about that time, mainly in QBasic (hehe), and it was not until I picked up Python that I really thought about drawing...
Project Euler: 17
So today I REALLY wanted to code something, but I had absolutely no idea what to code. Usually, when stricken with such problems I make some nice GUIs, but I just wasn’t feeling that today. So I went back to ol’ Project Euler and decided to solve one of those problems that I COULD do, but didn’t want to dedicate the time to.
Problem 17 deals with converting integers into...
November 2009
2 posts
More Cheating
So yesterday I wrote about how python could be used to exploit this game. Alternatively, there are two more ways to exploit this game. Both in JavaScript.
If you’re no good with JS, that’s cool. But I highly recommend learning it here. JS is widely used for non-secure (if they don’t need to be) web forms and other prototyping. I used over 1400 lines of it this summer working for...
I Like To Cheat
I recently came across a game on Facebook (here) that I just had to exploit. The goal is to click the button as many times as you can in 30 seconds. This is possible with JavaScript, but I’m a Python coder so I went the extra mile. Enjoy.
## MouseClicker v1.0
## Author: Jordan Scales
## Date: 11/13/09
import ctypes
import time
i = 0
intMax = 930 ## place the amount of clicks you want...