Data Junkie
-
Gray Bear, Inc.
- USA • WI • MKE
-
12:01
(UTC -06:00) - in/johngraber
Pinned Loading
-
what's locking?
what's locking? 1SELECT
2waiting.locktype AS waiting_locktype,
3waiting.relation::regclass AS waiting_table,
4waiting_stm.query AS waiting_query,
5waiting.mode AS waiting_mode,
-
postgres indexes sorted by size
postgres indexes sorted by size 1SELECT
2relname AS name,
3pg_size_pretty(sum(relpages::bigint*current_setting('block_size')::bigint)::bigint) AS size
4FROM
5pg_class
-
find parent table of a toast table i...
find parent table of a toast table in postgresql 1select
2relname
3from
4pg_class
5where
-
hull moving average
hull moving average 1def hma(values, window):
23# requires wma.py
45# HMA = WMA(2*WMA(PRICE, N/2) - WMA(PRICE, N), SQRT(N))
-
weighted moving average
weighted moving average 1def wma(values, window):
23# requires trinum.py
45# using definition provided at
-
triangular number
triangular number 1def trinum(n):
23# calculates the "triangular number" of a number
4# https://www.mathsisfun.com/algebra/triangular-numbers.html
5
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.