Skip to content

Instantly share code, notes, and snippets.

View opmau's full-sized avatar

Adam King opmau

  • Sydney, AU
View GitHub Profile
@Intyre
Intyre / Wahoo_Elemnt.md
Last active October 24, 2025 17:27
Wahoo Elemnt - Tips, tricks and custom images
@arikfr
arikfr / README.md
Last active September 10, 2025 05:01
Setting up HTTPS with LetsEncrypt for Redash Docker Deployment
  1. Make sure the domain you picked points at the IP of your Redash server.
  2. Switch to the root user (sudo su).
  3. Create a folder named nginx in /opt/redash.
  4. Create in the nginx folder two additional folders: certs and certs-data.
  5. Create the file /opt/redash/nginx/nginx.conf and place the following in it: (replace example.redashapp.com with your domain name)
    upstream redash {
        server redash:5000;
    }
    
@mottalrd
mottalrd / gist:7ddfd45d14bc7433dec2
Last active December 22, 2024 15:21
Evan Miller source code for sample size from my blog post http://www.alfredo.motta.name/ab-testing-from-scratch/
function num_subjects(alpha, power_level, p, delta) {
var t_alpha2 = ppnd(1.0-alpha/2);
var t_beta = ppnd(power_level);
var sd1 = Math.sqrt(2 * p * (1.0 - p));
var sd2 = Math.sqrt(p * (1.0 - p) + (p + delta) * (1.0 - p - delta));
return (t_alpha2 * sd1 + t_beta * sd2) * (t_alpha2 * sd1 + t_beta * sd2) / (delta * delta);
}
t-test Shiny App
Base R code created by Jimmy Wong
Shiny app files created by Jimmy Wong
Cal Poly Statistics Dept Shiny Series
http://statistics.calpoly.edu/shiny

A/B Testing

Optimizely

click goals
measures how often visitors click an element

url targeting