Skip to content

Instantly share code, notes, and snippets.

View js62789's full-sized avatar

Jeffrey Smith js62789

  • CarGurus
  • Boston, MA
View GitHub Profile
import querystring from 'querystring';
import { RSAA } from 'redux-api-middleware';
function queryKey(obj) {
const ordered = {};
Object.keys(obj).sort().forEach(function(key) {
ordered[key] = obj[key];
});

Keybase proof

I hereby claim:

  • I am js62789 on github.
  • I am js62789 (https://keybase.io/js62789) on keybase.
  • I have a public key ASCYsGCF6nojohVXNNN_GemW_Mh4EPPoqnuzzV-bTC5uHQo

To claim this, I am signing this object:

@js62789
js62789 / ExpressTrackingPixel.js
Created March 3, 2023 18:52
This is a simple implementation of a tracking pixel using Express.js
import express from 'express';
const app = express();
const pixel = Buffer.from('R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7', 'base64');
app.get('/pixel.gif', (req, res) => {
res.writeHead(200, {
'Content-Type': 'image/gif',
'Content-Length': pixel.length,