Skip to content

Instantly share code, notes, and snippets.

Bradley M. Battista bbattista

Block or report user

Report or block bbattista

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
bbattista /
Last active Oct 22, 2019
Bayer Reconstruction of 12-bit PGM in RGGB configuration with color/contrast balancing
# python filename.pgm
# takes in a raw image having a Bayer Color Formatted Array (RGGB)
# and outputs two JPEG files. The first file is simply the
# Bayer Reconstruction as RGB. The second file has been
# processed to enhance color and contrast using combinations of:
# 1) independent color channel scaling
# 2) simplest color balancing
# 3) white balancing
bbattista /
Created Sep 18, 2014
TSHEETS API calls from Perl
# This example shows how to connect to the Tsheets API using Perl
use HTTP::Request::Common;
use LWP::UserAgent;
use JSON;
use Data::Dumper;
# Here's an example query to the API that reports the JSON jobcodes result into a hash array
You can’t perform that action at this time.