Skip to content

Instantly share code, notes, and snippets.

View ablanathtanalba's full-sized avatar
👻
◎▵

Daly Barnett ablanathtanalba

👻
◎▵
  • Bay
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ablanathtanalba on github.
  • I am dalymulti (https://keybase.io/dalymulti) on keybase.
  • I have a public key ASCnAuiJ65svsQvm5JeWX2cXiaU0rfX9Pu2eaC1r8RM-5wo

To claim this, I am signing this object:

import json
import math
# python version of estimate max entropy function
# manually tested, produces same results as the js version
def estimate_max_entropy(str):
MAX_LS_LEN_FOR_ENTROPY_EST = 256
import math
def estimate_max_entropy(str):
MAX_LS_LEN_FOR_ENTROPY_EST = 256
SEPS = "._-"
BIN = "01"
DEC = "0123456789"
HEX = "abcdef" + DEC
@ablanathtanalba
ablanathtanalba / pixel_tracking_heuristic_test_server.py
Last active July 31, 2019 18:00
flask app server for testing PB pixel tracking heuristic
from flask import Flask, request, response
app = Flask(__name__)
# example string taken from actual results
COOKIE = '82d07aeb-ce29-4e6d-a35f-76ce3545fa38'
@app.route('/')
def route_pixel_tracking_cookie_status():
response.status = '200'
@ablanathtanalba
ablanathtanalba / Merlin Guides Tech Assessment
Created February 13, 2018 20:20
Merlin Guides Solution
/*
SOLUTIONS TO DETECT IF A PAGE IS LOADING
After Ajax calls are made it runs the cb function
*/
//in the rare case that jquery is not already included,
//this appends it to the head
var head = document.getElementsByTagName('head')[0];
var script = document.createElement('script');