Skip to content

Instantly share code, notes, and snippets.

View rexmac's full-sized avatar

Rex McConnell rexmac

View GitHub Profile

Keybase proof

I hereby claim:

  • I am rexmac on github.
  • I am rexmac (https://keybase.io/rexmac) on keybase.
  • I have a public key ASBtQ-h_XXA2Gm7d1A9kFOggPnd4DCAFnc4ovjn1tUqfkgo

To claim this, I am signing this object:

@rexmac
rexmac / gist:3189232
Created July 27, 2012 17:21 — forked from getify/gist:3185473
attempting to use jParser to extract dimensions of JPG image file
var fs = require("fs");
var jParser = require("jParser");
var eof = false;
fs.readFile("sample.jpg",function(err,data) {
if (!err) {
var view = new jDataView(data, undefined, undefined, false);
var parser = new jParser(view,{
// JPG