Skip to content

Instantly share code, notes, and snippets.

View rrelyea's full-sized avatar

Rob Relyea rrelyea

View GitHub Profile
@rrelyea
rrelyea / dosesGiven-2022-05-11.txt
Last active May 11, 2022 23:24
Total doses given of covid prevention (Evusheld) and treatments (Paxlovid, Bebtelovimab, Lagevrio)
DosesGiven is calcuated based on doses available reporting from each provider.
I've downloaded all this data (check for new data every 20 minutes) from healthdata.gov.
Note: to develop these totals, I'm looping through the current list of providers. If somebody had given doses, but no longer is listed, those doses are ignored.
(sotrivimab shows 0 doses given...because there are no current providers, for example.)
Inventory goes up when a provider gets more supply.
Inventory goes down when a provider gives doses to a patient, or transfers them to another provider.
Somedays inventory goes up and down in the same day, up 20 doses net...but that was becuase they got a box of 24 and gave 4 doses to patients.
My dosesGiven tries to calculate that.
@rrelyea
rrelyea / dotnetListPackage-nugetSln-1.txt
Last active June 15, 2019 12:58
dotnet list package output - current output & potential future output
StdErr:
The project `C:\repos\nc-dotnetlist\test\TestExtensions\TestableVSCredentialProvider\TestableVSCredentialProvider.csproj` uses package.config for NuGet packages, while the command works only with package reference projects.
StdOut:
Project 'NuGet.CommandLine.XPlat' has the following package references
[netcoreapp2.1]:
Top-level Package Requested Resolved
> Microsoft.Build.Runtime 16.0.461 16.0.461
> Microsoft.Extensions.CommandLineUtils 1.0.1 1.0.1
@rrelyea
rrelyea / CLI-RestoreBuildPackPush.cmd
Last active May 30, 2019 15:18
CLI Techniques - 2012 to Present
@md classlib-packages
dotnet new classlib -o classlib1
@echo build a netstandard class library with msbuild - restore, pack, and push with nuget.exe
@echo -- technique since ~2013
cd classlib1
nuget restore classlib1.csproj
msbuild /t:build /p:Configuration=Release /verbosity:minimal
nuget pack -prop Configuration=Release -OutputDirectory bin\release\
nuget push bin\release\*.nupkg -source c:\temp\classlib-packages\