Skip to content

Instantly share code, notes, and snippets.

@ariaz
ariaz / _.md
Created July 15, 2013 16:29
focusContext
@ariaz
ariaz / campaigns.json
Created November 14, 2012 03:15
Another Inlet
[{"campaignId":7103,"campaignRawClicks":238.0,"campaignRawListings":1121700.0,"campaignRawCtr":2.1217794419185166E-4,"campaignNormListings":996493.6452152507,"campaignNormCtr":2.3883744883148762E-4,"adList":[{"adId":9940880,"rawClicks":10,"rawImps":28070,"rawCtr":3.562522265764161E-4,"normImps":23767.541270477708,"normCtr":4.2074188012124187E-4},{"adId":9941194,"rawClicks":4,"rawImps":7216,"rawCtr":5.543237250554324E-4,"normImps":6021.113311933133,"normCtr":6.643289692078164E-4},{"adId":9941195,"rawClicks":29,"rawImps":127575,"rawCtr":2.2731726435430138E-4,"normImps":123989.69903509428,"normCtr":2.3389039755465318E-4},{"adId":9941249,"rawClicks":6,"rawImps":32020,"rawCtr":1.8738288569643974E-4,"normImps":30046.543309179975,"normCtr":1.9969019192190568E-4},{"adId":9941250,"rawClicks":10,"rawImps":32351,"rawCtr":3.091094556582486E-4,"normImps":29780.574532449584,"normCtr":3.3578935789515326E-4},{"adId":9941251,"rawClicks":22,"rawImps":177537,"rawCtr":1.2391783121264862E-4,"normImps":172117.27977434505,"normCtr"
@ariaz
ariaz / _.md
Created November 10, 2012 23:23
Another Inlet
@ariaz
ariaz / campaigns.json
Created November 9, 2012 20:13
Another Inlet
{"campaigns":[{"campaignId":7103,"adList":[{"adId":9940880,"unnormalizedAdPerf":{"numAgedClicks":0.20027495154099983,"numAgedImps":648.7028418253485,"agedCTR":3.0873142312350197E-4,"numRawClicks":10,"numRawImps":28070,"rawCTR":3.562522265764161E-4,"lastContactStartOfDay":1350273600000,"numNormalizedImps":23767.541270477708,"numAgedNormalizedImps":0.0},"normalizedAdPerf":{"numAgedClicks":0.20027495154099983,"numAgedImps":0.0,"agedCTR":"NaN","numRawClicks":10,"numRawImps":23767,"rawCTR":4.2075146211133083E-4,"lastContactStartOfDay":1350273600000}},{"adId":9941194,"unnormalizedAdPerf":{"numAgedClicks":0.03875560416279997,"numAgedImps":452.8757469353478,"agedCTR":8.557668284305957E-5,"numRawClicks":4,"numRawImps":7216,"rawCTR":5.543237250554324E-4,"lastContactStartOfDay":1350360000000,"numNormalizedImps":6021.113311933133,"numAgedNormalizedImps":0.0},"normalizedAdPerf":{"numAgedClicks":0.03875560416279997,"numAgedImps":0.0,"agedCTR":"NaN","numRawClicks":4,"numRawImps":6021,"rawCTR":6.643414715163594E-4,"lastCont
@ariaz
ariaz / campaigns.json
Created November 9, 2012 20:13
Another Inlet
{
campaigns: [
{
campaignId: 7103,
adList: [
{
adId: 9940880,
unnormalizedAdPerf: {
numAgedClicks: 0.20027495154099983,
numAgedImps: 648.7028418253485,
@ariaz
ariaz / campaigns.json
Created November 9, 2012 20:12
Another Inlet
{
campaigns: [
{
campaignId: 7103,
adList: [
{
adId: 9940880,
unnormalizedAdPerf: {
numAgedClicks: 0.20027495154099983,
numAgedImps: 648.7028418253485,
@ariaz
ariaz / config.json
Created November 9, 2012 20:11
Another Inlet
{"description":"Another Inlet","endpoint":"","display":"svg","public":true,"require":[],"tab":"edit","display_percent":0.7,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01}
@ariaz
ariaz / inlet.js
Created August 22, 2012 22:40
just another inlet to tributary
// SVG canvas attributes
var margin = 50;
width = 443,
height = 568;
// selection (instead of select body....)
svg = d3.select('svg');
// define body
@ariaz
ariaz / inlet.js
Created August 21, 2012 02:35
just another inlet to tributary
// SVG canvas attributes
var margin = 50;
width = 600,
height = 600;
// selection (instead of select body....)
svg = d3.select('svg');
// define body