Find the most appropriate space between a bunch of windows on the screen.
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
find_best.py
geo.py

README

Hey

find_best.py accepts locations and sizes on stdin, and prints an x and a y coordinate on stdout. It takes 4 arguments - the width and height of the screen, and the width and height of the window.

If no spaces big enough are found, it returns exit code one, like it should :)

Appologies for the lack of comments, it's late.

Also, appologies about geo.py - it was writtten for my a-level coursework and is big, slow and ugly. it could easily be replaced by something much smaller for this. It does, however do some pretty awesome things.

Enjoy :)