I hereby claim:
- I am bramp on github.
- I am bramp (https://keybase.io/bramp) on keybase.
- I have a public key whose fingerprint is 77EF 1852 F8E2 E39C 4973 FCDB 67F1 D791 30CA 7809
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # Simple script that reads a mongodb datafile | |
| # Finds all documents starting with _id | |
| # reads the record, and prints out compressed and uncompressed | |
| # results. | |
| # | |
| import mmap | |
| import os | |
| import struct | |
| import zlib |
| <?php | |
| /** | |
| * Polygon Clipping | |
| * @author Andrew Brampton me <at> bramp <dot> net | |
| * @url http://bramp.net/blog/2011/11/php-polygon-clipper-using-the-sutherland-hodgman-algorithm/ | |
| * | |
| * Based on the Sutherland-Hodgman algorithm (1974). | |
| * http://en.wikipedia.org/wiki/Sutherland%E2%80%93Hodgman_algorithm | |
| * | |
| * This approache assumes four clip edges (the bounding box). |
| #!/usr/bin/python | |
| # Prints some simple information about ucode firmwares | |
| # such as those used by Intel Wifi cards | |
| # | |
| # Version 1.0 Jan 2011 | |
| # by Andrew Brampton | |
| # | |
| # Example | |
| # ./ucode.py /lib/firmware/*.ucode | |
| # |
| #!/usr/bin/env python | |
| # Turns a series of numbers into counts per second | |
| # by Andrew Brampton 2009 | |
| # TODO Make this smarter, so that it can parse numbers in blocks of text, and highlight the numbers it is changing. | |
| # TODO Make sure the value is divided by the real interval | |
| # TODO If the number printed is smaller than the previous number, then make sure to add extra padding to remove the old number | |
| # | |
| import subprocess | |
| import sys | |
| import time |