Skip to content

Instantly share code, notes, and snippets.

@ekafyi
Created June 12, 2023 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekafyi/5e5b8a1b7ae9d655cad632a346ca6050 to your computer and use it in GitHub Desktop.
Save ekafyi/5e5b8a1b7ae9d655cad632a346ca6050 to your computer and use it in GitHub Desktop.

collection of mermaid.live charts

flowchart TD
  START[Feed page] --> FEED_TYPE{Location feed?}
  FEED_TYPE --> |no | FEED_TYPE_ELSE([STOP])
  FEED_TYPE --> |yes,city| LOC_TYPE_CITY[Get city id] --> REQ_ALERTS
  FEED_TYPE --> |yes,district| LOC_TYPE_DISTRICT[Get district's\ncity id] --> REQ_ALERTS
  REQ_ALERTS[Get valid alerts] --> ALERTS{Has alerts?}
  ALERTS --> |no | ALERTS_N([STOP])
  ALERTS --> |yes| ALERTS_Y[Get city id\nfor each alert]
  ALERTS_Y --> ALERTS_FILTER[Filter alerts with\nmatching city id] --> ALERTS_SHOW([Show filtered alerts])

https://mermaid.live/edit#pako:eNp9Ul1v2jAU_SuWX9pKoVq-SJuHTRWEFSktXWJpogRFVuwQa0mMHFPGAv99JqaQSt3e7HPPOffcq9vCjBMKfZiXfJsVWEiAxkkNQIweIrSYUErAGq_oEgwGX8EkCMYpmr8EbcgzLBmvQa4Y3w5HxbnYUfc1B_sLlgZhHFwvYjR7Wd58wt7RxsiY3O1BOBtpxWiK5ovvVIIjDhjREaLgR_oQBhGK_-FCWCMFy2TPaTyNUTQdoc7tvX7VJEn9H-vLr5O94ZIRgEsqZKPputg-4uYE6zVouLcDDaTP_en7JBX6TPowsMqXcwEozgrdYXmRpvNehnQyDVEQLSaslFSc0oAtk4WyqLDMClavPq7xJIwfZz9VroJvQd6J6XlGlRMasKKiwoyoA2mPzRMoC1rRBPrqSbD4lcCkPige3kge7-oM-lJsqAE3a4IlHTO8EriCfo7LRqGUMMnFk7647vAMuMb1K-fVu1B9od_C39Af2LemYzu2bXmW43nmveUZcKdwyzxWTNvz7izbNd3h3cGAfzoP89Yd2q4zdL5Y95499Cz38Bf86eay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment