Skip to content

Instantly share code, notes, and snippets.

View wmcraver's full-sized avatar
🌵
Learning some new things

Mitch wmcraver

🌵
Learning some new things
View GitHub Profile
@wmcraver
wmcraver / urltools.r
Created January 19, 2017 23:08
A quick script I use to extract key items from URLs. This makes quick work for double checking the structure of SEO/SEM URLs.
library(urltools)
# Read in the URLs
dat = read.csv("LandingPageURLs.csv", stringsAsFactors = F)
# Extract the scheme, domain, and path from the urls
dat$scheme = scheme(dat$LandingPage)
dat$domain = domain(dat$LandingPage)
dat$path = path(dat$LandingPage)
@wmcraver
wmcraver / wordCap.js
Created April 6, 2017 22:45
Tealium Extension - capitalize first letter of each word in string
// b.channel = b.channel // The data layer value goes here. Should look like: one two three.
channelSplit = b.channel.split(" ");
for (i = 0; i < channelSplit.length; i++) {
channelSplit[i] = channelSplit[i].substring(0,1).toUpperCase() + channelSplit[i].substring(1,channelSplit[i].length);
}
b.channel = channelSplit.join(" "); // Change sectionName to the data layer variable. should look like: One Two Three.
@wmcraver
wmcraver / DocuSignDownloader.r
Last active November 15, 2020 08:54
This R script will login to your DocuSign account, retrieve a list of all envelopes, filter the list of envelopes for those with a status of 'completed', and then download said envelopes into one neat PDF. If you use this script, you will need to uncomment lines 5-7 and enter your username, password, and integrator key.
library(docuSignr)
library(dplyr)
# Create env variables based on github directions for this package. https://github.com/CannaData/docuSignr
# Sys.setenv("docuSign_username" = "username")
# Sys.setenv("docuSign_password" = "password")
# Sys.setenv("docuSign_integrator_key" = "integrator_key")
login = docu_login()

Keybase proof

I hereby claim:

  • I am wmcraver on github.
  • I am wmcraver (https://keybase.io/wmcraver) on keybase.
  • I have a public key ASDv3elJFsMoaaq0IqLzC_Y_QBfCbmLhhTbTZvVxQTLBVwo

To claim this, I am signing this object: