Skip to content

Instantly share code, notes, and snippets.

View anthonybaldwin's full-sized avatar

anthonybaldwin

View GitHub Profile

Keybase proof

I hereby claim:

  • I am anthonybaldwin on github.
  • I am anthonybaldwin (https://keybase.io/anthonybaldwin) on keybase.
  • I have a public key ASDFet-vv5GukByyMbReVg-GaW6eOdJXfI2jcwwS43s19go

To claim this, I am signing this object:

@anthonybaldwin
anthonybaldwin / __OntraportGoogleAnalyticsEcommerceMinified.js
Last active January 23, 2019 01:59
Send ONTRAPORT Order Form Transaction Information to Google Analytics/Ecommerce
<script>
<!---- CONFIGURATION FOR GOOGLE ANALYTICS ECOMMERCE ----->
var googleAnalyticsId = "UA-123456789-1", // replace with your Google Analytics ID
googleAnalyticsCurrency = "USD"; // currency you wish to send purchases in
<!---- DO NOT EDIT BELOW THIS LINE ----->
function gv(e){for(var a=window.location.search.substring(1).split("&"),r=0;r<a.length;r++){var t=a[r].split("=");if(t[0]==e)return decodeURIComponent(t[1]).replace(/\+/g," ")}return!1}function gae(){var e=gv("OrderId");if(e){ga("require","ecommerce");var a=gv("Revenue"),r=gv("Shipping"),t=gv("Tax");ga("ecommerce:addTransaction",{id:e,revenue:a,shipping:r,tax:t,currency:googleAnalyticsCurrency});var i=1,n=1;do{var c=gv("Item"+n+"Id"),o=gv("Item"+n+"Name"),g=c||o;if(c||o){var u=gv("Item"+n+"Price"),l=gv("Item"+n+"Quantity");ga("ecommerce:addItem",{id:e,name:o,price:u,quantity:l,sku:g}),n++}else i=0}while(i);ga("ecommerce:send"),ga("ecommerce:clear")}return!1}!function(e,a,r,t,i,n,c){e.GoogleAnalyticsObject=i,e[i]=e[i]||function(){(e[i].q=e
@anthonybaldwin
anthonybaldwin / anthonybaldwin.id
Last active September 13, 2017 16:20
Blockstack ID Verification
Verifying that "anthonybaldwin.id" is my Blockstack ID. https://onename.com/anthonybaldwin
@anthonybaldwin
anthonybaldwin / 1. screenshot
Last active February 17, 2018 13:09
Screenshot (Linux or Mac) > upload to Google Drive > shorten w/ goog.l, bit.ly, or coinhive > copy to clipboard > notify
#!/bin/bash
#############################################################################################################################
# Title: #
# screenshot (Linux or Mac) > upload to Google Drive > shorten w/ goog.l, bit.ly, or coinhive > copy to clipboard > notify #
#############################################################################################################################
##################################################
# Linux requirements: #
# 1. https://github.com/prasmussen/gdrive #