Giter Site home page Giter Site logo

covid19's Introduction

COVID19 case rate script

Babashka script to show COVID19 case rates.

Currently works for US only… PRs welcome.

Installation

First, install Babashka.

Then,

./covid19.bb US <State> <County>

# or

./covid19.bb -h   # for more options.

Example Usage

$ ./covid19.bb US Illinois Cook
Data starts 2020-01-22; today's date: 2020-08-08
Weeks:
     W     Th      F     Sa     Su      M     Tu
    --     --     --     --     --     --     --
     0      0      1      1      1      1      1
     1      1      2      2      2      2      2
     2      2      2      2      2      2      2
     2      2      2      2      2      2      2
     2      2      2      2      2      2      2
     2      2      2      2      3      4      4
     4      5      5      6      7      7     11
    22     27     40     50     50     62    107
   178    278    278    548    805    922   1194
  1418   1418   2239   2613   3445   3727   4496
  5152   5575   6111   7439   8034   8728   9509
 10520  11415  12472  13417  14585  15474  16323
 17306  18087  19391  20395  21272  22101  23181
 24546  25811  27616  29058  30574  31953  33449
 34880  36513  38668  40227  42324  43715  45223
 46689  48341  50236  51674  52655  53381  55470
 56406  58457  59905  61212  62218  63690  64691
 66213  67551  68949  70417  72010  73097  73819
 74521  75306  76266  77119  77925  78495  79673
 80204  80713  81344  81924  82427  82819  83271
 83585  83978  84249  84581  84906  85184  85538
 85858  86179  86551  86885  87177  87424  87784
 88138  88650  89068  89407  89755  90122  90536
 90911  91381  91774  92240  92532  92781  93053
 93496  94005  94605  95138  95557  95884  96186
 96662  97214  97790  98292  98670  99052  99464
100124 100795 101411 101955 102583 103008 103441
104001 104687 105493 106131 106713 107247 107744
108425 109150 110002      ?      ?      ?      ?

Seven day average of daily increase:

   W   Th    F   Sa   Su    M   Tu
  --   --   --   --   --   --   --
   0    0    0    0    0    0    0
   0    0    0    0    0    0    0
   0    0    0    0    0    0    0
   0    0    0    0    0    0    0
   0    0    0    0    0    0    0
   0    0    0    0    0    0    1
   2    3    5    6    6    7   13
  22   35   34   71  107  122  155
 177  162  280  295  377  400  471
 533  593  553  689  655  714  716
 766  834  908  854  935  963  973
 969  953  988  996  955  946  979
1034 1103 1175 1237 1328 1407 1466
1476 1528 1578 1595 1678 1680 1682
1687 1689 1652 1635 1475 1380 1463
1388 1445 1381 1362 1366 1472 1317
1401 1299 1292 1315 1398 1343 1304
1186 1107 1045  957  845  771  836
 811  772  725  686  643  617  514
 483  466  415  379  354  337  323
 324  314  328  329  324  320  320
 325  353  359  360  368  385  393
 396  390  386  404  396  379  359
 369  374  404  414  432  443  447
 452  458  455  450  444  452  468
 494  511  517  523  559  565  568
 553  556  583  596  590  605  614
 632  637  644    ?    ?    ?    ?

Weekly new:

   1    1     0    0
   0    2     7   85
1016 3078  4357 5803
5875 8903 10343 8781
8285 7606  5152 3067
1953 1926  2398 2142
2690 2802  3317 3743
1577    ?     ?    ?

License

Copyright © 2020 John Jacobsen

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

Running this script makes use of the Johns Hopkins COVID-19 dataset. See that repo for terms of use.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

covid19's People

Contributors

eigenhombre avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.