Skip to content

Instantly share code, notes, and snippets.

@robinwo
robinwo / panels.css
Last active December 2, 2015 20:02
Bootstrap Panels Nav
.nav-sidebar {
margin-right: -21px; /* 20px padding + 1px border */
margin-bottom: 20px;
margin-left: -20px;
}
.nav-sidebar > li > a {
padding-right: 20px;
padding-left: 20px;
}
.nav-sidebar > .active > a {
@robinwo
robinwo / track.js
Created April 17, 2014 06:41
Unbounce track form conversion
lp.jQuery('form').submit( function(e){
// your function goes here
});
@robinwo
robinwo / track.js
Created April 17, 2014 06:43
AdRoll track conversion (add to segment)
try {
__adroll.record_user({ adroll_segments : 'segment_name' });
} catch(err) {}
/**************************************
* Find the Anomalies
* Created By: Russ Savage
* Version: 1.2
* Changelog v1.2
*  - Fixed divide by 0 errors
*  - Changed SIG_FIGS to DECIMAL_PLACES
* Changelog v1.1
*  - Added ability to tag ad anomalies as well
* FreeAdWordsScripts.com
@robinwo
robinwo / brokenlinks.js
Created April 29, 2014 13:00
Find broken links (AdWords)
@robinwo
robinwo / creativetesting.js
Created April 29, 2014 15:43
Automated creative testing
/*********************************************
* Automated Creative Testing With Statistical Significance
* Version 2.0
* Changelog v2.0
*   - Fixed bug in setting the correct date
*   - Script now uses a minimum visitors threshold
*        per Ad instead of AdGroup
*   - Added the ability to add the start date as a label to AdGroups
*   - Added ability to check mobile and desktop ads separately
* Changelog v1.1.1 - Fixed bug with getDisplayUrl
@robinwo
robinwo / gist:728cb3b864859e19d1d3
Created October 28, 2014 14:57
Facebook Share
FB.ui({
method: 'feed',
display: 'popup',
name: title,
link: '',
picture: '',
caption: '',
description: '',
to: ''
},
@robinwo
robinwo / new_gist_file_0
Created January 8, 2015 12:47
SSH Offending Key
perl -pi -e 's/\Q$_// if ($. == 9);' ~/.ssh/known_hosts
@robinwo
robinwo / update_deps.sh
Created July 21, 2015 09:27
Update deps (brew / composer) on startup
#!/bin/zsh
## updating brews
echo "::: Updating brews :::"
brew -v update && brew -v upgrade && brew -v cleanup && brew -v prune && brew -v doctor
echo "::: Updating composer :::"
composer self-update
@robinwo
robinwo / load_ssh_keys.sh
Created July 21, 2015 09:28
Load ssh keys on startup
#!/bin/zsh
## load ssh keys
cd ~/.ssh ;
echo ":::: Load SSH keys in agent ::::" ;
for i in * ;
do if [[ -f $i ]] && [[ $i == id_* ]] && [[ $i != *.pub ]];
then
ssh-add -l |grep -q `ssh-keygen -lf $i | awk '{print $2}'` || ssh-add $i;
fi
done ;