Skip to content

Instantly share code, notes, and snippets.

@michie1
michie1 / Foo.elm
Last active December 11, 2016 21:41
Decode Maybe type
module Foo exposing (..)
import Json.Decode exposing (..)
import Json.Decode.Pipeline exposing (..)
type alias Boat =
{ color : Maybe Color
}
@michie1
michie1 / gist:6cee50e863ddb50bd9a8a0444dd94f86
Last active January 13, 2018 18:10
wtos punten per categorie
select count(*) as aantal, wedstrijden.w_soort from uitslagen inner join wedstrijden on uitslagen.w_id=wedstrijden.w_id where uitslagen.u_datum >= '2017-01-01' and wedstrijden.w_zichtbaar = true group by w_soort order by aantal desc;
+--------+----------------------------+
| aantal | w_soort |
+--------+----------------------------+
| 99 | Trainingskoers |
| 77 | Criterium |
| 42 | Klassieker |
| 29 | Zondagmorgencompetitie |
| 27 | Omloop |
| 27 | Veldrit nationaal |