Skip to content

Instantly share code, notes, and snippets.

@noahmanion
noahmanion / growth_accounting_bq.sql
Created November 19, 2024 22:35
Growth Accounting Query for BigQuery
dau as (
-- This part of the query can be pretty much anything.
-- The only requirement is that it have three columns:
-- dt, user_id, inc_amt
-- Where dt is a date and user_id is some unique identifier for a user.
-- Each dt-user_id pair should be unique in this table.
-- inc_amt represents the amount of value that this user created on dt.
-- The most common case is
-- inc_amt = incremental revenue from the user on dt
-- If you want to do L28 growth accounting, user inc_amt=1.
/* style checkboxes and radios as buttons */
.option input {
display:none;
}
.option {
margin-bottonm: -10px !important;
}
.option label {
position: absolute !important;
.lp.pom-form .lp-pom-form-field .checkbox-group {
height: 80px;
}
.lp.pom-form .lp-pom-form-field .radio-group {
height: 80px;
}
.multistep .option input {
VERSION BUILD=8820413 RECORDER=FX
SET !ERRORIGNORE YES
TAB T=1
URL GOTO=https://pinterst.com/whateveryourcompetitoris/followers/
WAIT SECONDS=19
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
WAIT SECONDS=14
TAG POS=1 TYPE=BUTTON ATTR=TXT:Follow
<script>
function detectmob() {
if( navigator.userAgent.match(/Android/i)
|| navigator.userAgent.match(/webOS/i)
|| navigator.userAgent.match(/iPhone/i)
|| navigator.userAgent.match(/iPad/i)
|| navigator.userAgent.match(/iPod/i)
|| navigator.userAgent.match(/BlackBerry/i)
|| navigator.userAgent.match(/Windows Phone/i)
){ return true