Skip to content

Instantly share code, notes, and snippets.

View olveirap's full-sized avatar

Paulo Olveira olveirap

View GitHub Profile
@olveirap
olveirap / debugger pause beforeunload
Created March 13, 2017 17:42 — forked from carcinocron/debugger pause beforeunload
Chrome: pause before redirect
// Run this in the F12 javascript console in chrome
// if a redirect happens, the page will pause
// this helps because chrome's network tab's
// "preserve log" seems to technically preserve the log
// but you can't actually LOOK at it...
// also the "replay xhr" feature does not work after reload
// even if you "preserve log".
window.addEventListener("beforeunload", function() { debugger; }, false)
@olveirap
olveirap / Streaming Algorithms.md
Last active May 4, 2017 02:11 — forked from debasishg/gist:8172796
A collection of links for streaming algorithms and data structures
  1. General Background and Overview
@olveirap
olveirap / README.md
Last active August 22, 2017 13:28 — forked from eduardocereto/README.md
Calculates Traffic Source

Calculates Traffic Source

Still a work in progress, not ready for usage.

Tries to mim Classic Google Analytics methodology to calculate traffic source client side.

On Universal Analytics all this is calculated server side, so it's unavailable in case you need it client side.