Skip to content

Instantly share code, notes, and snippets.

View mdeland's full-sized avatar

Matt DeLand mdeland

View GitHub Profile
@mdeland
mdeland / basic_query.csv
Last active March 23, 2020 03:33
Summarizing Data in SQL
date num_customers distinct_customers total_bananas total_revenue revenue_per_sale
2016-01-01 345 287 564 3689 6.54
2016-01-02 364 299 582 4080 7.01
... ... ... ... ... ...
import Data.Bits.Extras
import Data.Hashable
{-
:info w32
w32 :: Integral a => a -> GHC.Word.Word32
-- Defined in ‘Data.Bits.Extras’
-}
filter (/= 0) (map (w32 . hash) ([1.0 .. 10000.0]::[Double]))
  1. General Background and Overview