Skip to content

Instantly share code, notes, and snippets.

View jordanh's full-sized avatar

Jordan Husney jordanh

View GitHub Profile
@jordanh
jordanh / zapier-mixpanel-jql.js
Created April 19, 2017 16:49
zapier-mixpanel-jql-run-javascript
var mixpanelApiUrl = 'https://mixpanel.com/api/2.0/jql';
var mixpanelApiSecret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx';
var toDate = new Date(input.toDatePretty);
var fromDate = new Date(toDate);
// calculate 30 days ago:
fromDate.setDate(toDate.getDate() - 30);
var toDateISO = toDate.toISOString().slice(0,10);
var fromDateISO = fromDate.toISOString().slice(0,10);
@jordanh
jordanh / keybase.md
Last active November 16, 2016 17:21

Keybase proof

I hereby claim:

  • I am jordanh on github.
  • I am jrhusney (https://keybase.io/jrhusney) on keybase.
  • I have a public key whose fingerprint is 9821 5FEC 2A44 5828 1641 41DD F682 4FEB FD2A 4E83

To claim this, I am signing this object: