Thursday, March 3, 2011

My first Chrome Ext: Scroll top/bottom

So today i actually got down into some code and wrote an extension for chrome that scrolls you to the top and/or bottom of the page instantly none of that slow scroll crap
using pure javascript without the magical jquery library :)
you can download it here
lets take a look the code i used

Simply created 2 Elements and populated their properties so they would stay on top and scroll with the page thanks to CSS

and i simply set their href to a javascript injection of scroll(x-axis,y-axis)

Its nothing too fancy but I find it useful for many things :)

Tuesday, March 1, 2011

Pygame Game and Player Class

This is a simple python class I wrote back when I was playing around with pygame its very basic and I used it as a foundation for my game projects