Skip to content

Instantly share code, notes, and snippets.

@PrafulB
PrafulB / mortalityStockSources.json
Last active May 27, 2020 13:50 — forked from jonasalmeida/mortalityStockSources.json
Mortality Stock data sources
{
"https://data.cdc.gov/resource/muzy-jte6.json": {
"name": "Weekly Counts of Deaths by State and Select Causes, 2019-2020",
"type": "socrata",
"description": "Provisional counts of deaths by the week the deaths occurred, by state of occurrence, and by select underlying causes of death for 2019-2020. The dataset also includes weekly provisional counts of death for COVID-19, coded to ICD-10 code U07.1 as an underlying or multiple cause of death."
},
"https://data.cdc.gov/resource/3yf8-kanr.json": {
"name": "Weekly Counts of Deaths by State and Select Causes, 2014-2018",
"type": "socrata",
"description": "Final counts of deaths by the week the deaths occurred, by state of occurrence, and by select causes of death for 2014-2018. Death counts in this dataset were derived from the National Vital Statistics System database that provides the most timely access to the data. Therefore, counts may differ slightly from final data due to differences in processin
@PrafulB
PrafulB / uploadToBox.js
Created May 21, 2020 15:13
Testing Gists for Episphere
box.uploadFile = (updateData, id) => {
// If id is present, the file needs to be updated, otherwise create a new file.
const uploadEndpoint = id ? `${box.endpoints['upload']}/${id}/${box.endpoints['subEndpoints']['content']}` : `${box.endpoints['upload']}/${box.endpoints['subEndpoints']['content']}`
return utils.boxRequest(uploadEndpoint, {
'method': "POST",
'body': updateData
})
}