Skip to content

Instantly share code, notes, and snippets.

View benjohnson77's full-sized avatar

Ben Johnson benjohnson77

View GitHub Profile
@benjohnson77
benjohnson77 / uservoice.html
Created November 8, 2012 21:06
user voice code.
<script type="text/javascript">
var uvOptions = {};
(function() {
var uv = document.createElement('script'); uv.type = 'text/javascript'; uv.async = true;
uv.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'widget.uservoice.com/phVmFIbfN3vLTIz9tLhjA.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(uv, s);
})();
</script>
@benjohnson77
benjohnson77 / cd.js
Created October 15, 2012 19:07
Content Discovery Widget Tag
var IC_permalink = document.location.href
document.write('<div style="width:800px;" >');
document.write('<div class="OUTBRAIN" data-src="'+IC_permalink+'" data-widget-id="AR_2" data-ob-template="investing" ></div><script type="text/javascript" src="http://widgets.outbrain.com/outbrain.js"></scr'+'ipt></div>');
document.write('<div class="OUTBRAIN" data-src="'+IC_permalink+'" data-widget-id="AR_3" data-ob-template="investing" ></div><script type="text/javascript" src="http://widgets.outbrain.com/outbrain.js"></scr'+'ipt></div>');
document.write('</div>');
@benjohnson77
benjohnson77 / ga.html
Created October 15, 2012 17:27
ga for multiple domain landing pages
This should go at the top of the landing page!!!
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-648272-12']);
_gaq.push(['_setDomainName', 'investingchannel.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
@benjohnson77
benjohnson77 / yb.html
Created October 1, 2012 14:34
testing of yield bot
this is with yield bot working and passing the parameters
<script src="http://ad.doubleclick.net/adj/invc.streetinsider/home;kw=;rnd=38957865363465;kval=home;dcopt=ist;ti_assets=500K_749K;w_deposits=100K_249K;f_cohorts=F22;sid_brokers=yes;sif_brokers=no;i360=254K_plus;dis_spend=140K_182K;e_cohorts=N66;ability_pay=195_261;e_spectrum=A_PS;ybot_ad=y;ybot_slot=728x90;tkr=;tile=1;sz=728x90;viewcount=2;is_search=false;ord=85411350133481?" type="text/javascript"></script>
this is without it passing when the user has not been selected bu YB to provide an ad.
<script src="http://ad.doubleclick.net/adj/invc.streetinsider/home;kw=;rnd=29035804607997;kval=home;dcopt=ist;ti_assets=500K_749K;w_deposits=100K_249K;f_cohorts=F22;sid_brokers=yes;sif_brokers=no;i360=254K_plus;dis_spend=140K_182K;e_cohorts=N66;ability_pay=195_261;e_spectrum=A_PS;tkr=;tile=1;sz=728x90;viewcount=01;is_search=false;ord=53567345274474?" type="text/javascript">
You will notice these kvals added to the double click request.
@benjohnson77
benjohnson77 / yb.html
Created October 1, 2012 14:32
testing of yield bot
h1.this is with yield bot working and passing the parameters
<script src="http://ad.doubleclick.net/adj/invc.streetinsider/home;kw=;rnd=38957865363465;kval=home;dcopt=ist;ti_assets=500K_749K;w_deposits=100K_249K;f_cohorts=F22;sid_brokers=yes;sif_brokers=no;i360=254K_plus;dis_spend=140K_182K;e_cohorts=N66;ability_pay=195_261;e_spectrum=A_PS;ybot_ad=y;ybot_slot=728x90;tkr=;tile=1;sz=728x90;viewcount=2;is_search=false;ord=85411350133481?" type="text/javascript"></script>
h2. this is without it passing when the user has not been selected bu YB to provide an ad.
<script src="http://ad.doubleclick.net/adj/invc.streetinsider/home;kw=;rnd=29035804607997;kval=home;dcopt=ist;ti_assets=500K_749K;w_deposits=100K_249K;f_cohorts=F22;sid_brokers=yes;sif_brokers=no;i360=254K_plus;dis_spend=140K_182K;e_cohorts=N66;ability_pay=195_261;e_spectrum=A_PS;tkr=;tile=1;sz=728x90;viewcount=01;is_search=false;ord=53567345274474?" type="text/javascript">
@benjohnson77
benjohnson77 / cd.html
Created September 26, 2012 23:17
Content Discovery Widget Tag
<script type="text/javascript" src="http://cdn.investingchannel.com/contentdiscovery/cd.js?s=evilspeculator"></script>
set :stages, %w(qa staging production)
require 'capistrano/ext/multistage'
require 'config/sitemap_tasks'
require 'cap_recipes/tasks/passenger'
namespace :deploy do
set(:scm_username) { Capistrano::CLI.ui.ask("SVN User name: ") }
set(:scm_password) { Capistrano::CLI.password_prompt("SVN Password: ") }
set(:scm_release_path) { Capistrano::CLI.ui.ask("svn release ex tags/letsgo_2.x.x: ") }
set :repository, "https://svn.traveladnetwork.com/letsgo/#{scm_release_path}"