Skip to content

Instantly share code, notes, and snippets.

View zugbug007's full-sized avatar

Alan Millington zugbug007

  • UK
View GitHub Profile
@ryx
ryx / adobeAnalyticsDebugger.js
Last active May 28, 2019 15:24
A tiny Adobe Analytics debugging helper to be used as bookmarklet
/**
* A tiny Adobe Analytics debugging helper to be used as bookmarklet. Compared to
* Adobe's own debugging helper this one simply dumps JSON objects to the console,
* which I personally prefer over fancy HTML tables. This one also supports POST
* requests as sometimes used by s.t and s.tl which is quite useful if you need to
* debug asynchronous tracking requests.
*/
(function () {
// create a nice JSON representation of a query string
function jsonifyRequestUrl(url) {
Found: master for onurakpolat/awesome-analytics — A curated list of analytics frameworks, software and other tools. — 272⭐️ — last updated 7 days ago
🔎 Checking 87 links
✅ https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg
✅ http://www.google.com/analytics/
🔶 301 http://foxmetrics.com/%20
✅ http://piwik.org/
✅ https://heapanalytics.com/
✅ http://www.opentracker.net/
✅ https://calq.io/
🔶 302 http://www.clicktale.com/
@Two9A
Two9A / decronym.php
Last active April 9, 2024 23:25
Decronym: A simple Reddit bot
<?php
/**
* Dirty, dirty Reddit bot: Decronym
*/
class Reddit {
const USERNAME = 'Decronym';
const PASSWORD = '***';
const CLIENTID = '***';
const SECRET = '***';
@randyzwitch
randyzwitch / rsitecatalyst-mulitpage.R
Last active December 10, 2015 13:56
RSiteCatalyst Sankey Chart - Many-to-Many
#Multi-page pathing
library("d3Network")
library("RSiteCatalyst")
#### Authentication
SCAuth("name", "secret")
#### Get All Possible Paths with ("::anything::", "::anything::")
pathpattern <- c("::anything::", "::anything::")
next_page <- QueuePathing("zwitchdev",
@randyzwitch
randyzwitch / rsitecatalyst-sankey-one-page.R
Created September 10, 2014 20:42
RSiteCatalyst Sankey Diagram - Single Page to Multiple Pages
library("RSiteCatalyst")
library("d3Network")
#### Authentication
SCAuth("key", "secret")
#### Get Pathing data: Single page, then ::anything:: pattern
pathpattern <- c("http://randyzwitch.com/big-data-hadoop-amazon-ec2-cloudera-part-1", "::anything::")
next_page <- QueuePathing("zwitchdev",
"2014-01-01",
@randyzwitch
randyzwitch / force-directed-d3-rsitecatalyst.R
Created September 8, 2014 00:28
Force-directed network with RSiteCatalyst
#### Force directed network
#Limit to more than 5 occurence like in simple network
fd_graph_links <- subset(graph_links, count > 5)
#Get unique values of page name to create nodes df
#Create an index value, starting at 0
fd_nodes <- as.data.frame(unique(c(fd_graph_links$step.1, fd_graph_links$step.2)))
names(fd_nodes) <- "name"
fd_nodes$nodevalue <- as.numeric(row.names(fd_nodes)) - 1
@kerryrodden
kerryrodden / .block
Last active April 22, 2024 19:24
Sequences sunburst
license: apache-2.0
@ESeufert
ESeufert / index.html
Created August 23, 2012 07:59
A D3.js dashboard with a console for selecting dimensions
<html>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<head>
<title>D3.js Dashboard Introduction</title>
<script src="http://d3js.org/d3.v2.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js"></script>
<script>
function getMaxObjectValue(metric, graph_metric) {