Skip to content

Commit

Permalink
Deploying to scroll-output from @ 02ca385 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
breck7 committed May 2, 2024
1 parent 758a991 commit a4ef3ad
Show file tree
Hide file tree
Showing 36 changed files with 158 additions and 152 deletions.
3 changes: 1 addition & 2 deletions footer.scroll
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
importOnly
replaceJs DAYS_SINCE_INITIAL_COMMIT Math.floor(dayjs().diff(dayjs("2022-9-05"), "day", true))

viewSource

replaceJs DAYS_SINCE_INITIAL_COMMIT Math.floor(dayjs().diff(dayjs("2022-9-05"), "day", true))

stumpNoSnippet
div
class trueBaseThemeFooter
Expand Down
2 changes: 1 addition & 1 deletion header.scroll
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
importOnly

import settings.scroll

metaTags
Expand All @@ -21,4 +22,3 @@ stumpNoSnippet
a <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub icon</title><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>
class trueBaseThemeGitHubTopRight
href GIT_URL

16 changes: 8 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,10 @@
height: 100%;
}
</style>
<link rel="stylesheet" type="text/css" href="./TrueBaseTheme.css"></link>
<link rel="stylesheet" type="text/css" href="/TrueBaseTheme.css"></link>
<div class="trueBaseThemeHeader">
<a href="./index.html" class="trueBaseThemeLogo">CancerDB</a>
<a href="./posts/index.html">Posts</a>
<a href="/index.html" class="trueBaseThemeLogo">CancerDB</a>
<a href="/posts/index.html">Posts</a>
</div>
<a class="trueBaseThemeGitHubTopRight" href="https://github.com/breck7/CancerDB"><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub icon</title><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a>

Expand All @@ -329,17 +329,17 @@
</p>

<div class="trueBaseThemeFooter">
<a href="./index.html" class="trueBaseThemeLogo">CancerDB</a>
<a href="/index.html" class="trueBaseThemeLogo">CancerDB</a>
<span>·</span>
<a href="https://www.whitehouse.gov/briefing-room/speeches-remarks/2022/09/12/remarks-by-president-biden-on-the-cancer-moonshot-initiative/">#CancerMoonshot</a>
<span>·</span>
<a href="./pages/about.html">About</a>
<a href="/pages/about.html">About</a>
<span>·</span>
<a href="./posts/index.html">Blog</a>
<a href="/posts/index.html">Blog</a>
<span>·</span>
<a href="./posts/humor.html">Humor</a>
<a href="/posts/humor.html">Humor</a>
<span>·</span>
<a href="./pages/acknowledgements.html">Acknowledgements</a>
<a href="/pages/acknowledgements.html">Acknowledgements</a>
<span>·</span>
<a href="https://github.com/breck7/CancerDB/commit/9cf883c9573176207842fbbb3180a08656401b1a" title="Initial commit on September 5th, 2022">Day 605</a>
<span>·</span>
Expand Down
6 changes: 3 additions & 3 deletions index.scroll
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
replace BASE_URL .

import header.scroll

title SITE_NAME
Expand All @@ -7,10 +9,8 @@ title SITE_NAME

<center>

replace BASE_URL .

import homepageFeature.scroll

</center>

import footer.scroll
import footer.scroll
2 changes: 1 addition & 1 deletion magicSquares.scroll
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,4 @@ magicSquaresParser
}
}
return new MagicSquares(this.childrenToString().trim()).html
}
}
8 changes: 4 additions & 4 deletions pages/about.scroll
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
groups index
replaceJs BUILT_ON_DAY dayjs().format("MM/DD/YYYY")

import header.scroll
title About
groups index

startColumns 2

Expand All @@ -17,8 +19,6 @@ CancerDB is for two groups of people:
All data and source code used to generate this site are on GitHub and public domain.
https://github.com/breck7/CancerDB GitHub

replaceJs BUILT_ON_DAY dayjs().format("MM/DD/YYYY")

## History
CancerDB.com was purchased by Breck Yunits on September 3, 2022.

Expand All @@ -39,4 +39,4 @@ code

endColumns

import ../footer.scroll
import ../footer.scroll
14 changes: 7 additions & 7 deletions pages/acknowledgements.scroll
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import header.scroll
title Acknowledgements
// IMPORTS
groups index

startColumns 4

nodejs
const fs = require("fs")
const path = require("path")
Expand All @@ -17,6 +11,12 @@ nodejs
.join("\n")
}

import header.scroll
title Acknowledgements
// IMPORTS

startColumns 4

## Contributors
Thank you to everyone who has contributed directly to the CancerDB repo:
https://github.com/breck7/CancerDB CancerDB repo
Expand All @@ -35,4 +35,4 @@ And of course, thank you to everyone suffering from cancer who are striving to u

endColumns

import ../footer.scroll
import ../footer.scroll
5 changes: 3 additions & 2 deletions pages/header.scroll
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
importOnly
baseUrl https://cancerdb.com/pages/
replace BASE_URL ..
viewSourceBaseUrl https://github.com/breck7/CancerDB/blob/main/site/pages/

keyboardNav
baseUrl https://cancerdb.com/pages/
import ../header.scroll
import ../header.scroll
4 changes: 2 additions & 2 deletions posts/cancer-heatmaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<title>Cancer in the United States</title>
<script>/* This HTML was generated by 📜 Scroll v82.0.1. http://scroll.pub */</script>
<style>@media print {.doNotPrint {display: none !important;}}</style>
<link rel="canonical" href="https://cancerdb.com/posts/cancer-heatmaps.html"></link>
<link rel="canonical" href="https://cancerdb.com/cancer-heatmaps.html"></link>
<meta charset="iso-8859-1"></meta>
<meta name="viewport" content="width=device-width,initial-scale=1"></meta>
<meta name="description" content="CancerDB: Datasets about Cancer"></meta>
Expand Down Expand Up @@ -375,7 +375,7 @@
80+ 0.88 0.60 1.04 0.40 0.79 1.15 0.90 0.60 1.14 0.40 1.12 0.53 1.25 0.85 0.55 0.68 0.44 0.17 0.73 0.55 1.06 0.44 0.61 0.00</code>
</div>
<p class="scrollViewSource doNotPrint">
<a href="https://github.com/breck7/CancerDB/blob/main/site/posts/cancer-heatmaps.scroll">View source</a>
<a href="https://github.com/breck7/CancerDB/blob/main/site/cancer-heatmaps.scroll">View source</a>
</p>

<div class="trueBaseThemeFooter">
Expand Down
75 changes: 37 additions & 38 deletions posts/cancer-heatmaps.scroll
Original file line number Diff line number Diff line change
@@ -1,72 +1,71 @@
import header.scroll
author https://github.com/breck7 Breck Yunits
date 03-15-2023
openGraphImage https://cancerdb.com/posts/cancerHeatmap.jpg
groups All
nodejs
module.exports = require(`./heatmap.json`)
openGraphImage https://cancerdb.com/posts/cancerHeatmap.jpg

import header.scroll

title Cancer in the United States

# Heatmap visualizations

author https://github.com/breck7 Breck Yunits

endSnippet

import ../magicSquares.scroll

nodejs
module.exports = require(`./heatmap.json`)

<center>
Cancer deaths per year in the USA by cancer type and age
style text-align:center;
magicSquares
table
%w40 %h40 %fs10
table
%w40 %h40 %fs10
DEATHS_SQUARES
scale
#ebedf0 0
#c7e9c0 100
#a1d99b 400
#74c476 1600
#41ab5d 6400
#238b45 32000
#005a32 128000
scale
#ebedf0 0
#c7e9c0 100
#a1d99b 400
#74c476 1600
#41ab5d 6400
#238b45 32000
#005a32 128000
Data from United States Cancer Statistics (2019)
https://www.cdc.gov/cancer/uscs/dataviz/download_data.htm United States Cancer Statistics
class visNotes

Cancer cases per year in the USA by cancer type and age
style text-align:center;
magicSquares
table
%w40 %h40 %fs10
table
%w40 %h40 %fs10
CASES_SQUARES
scale
#ebedf0 0
#c7e9c0 100
#a1d99b 400
#74c476 1600
#41ab5d 6400
#238b45 32000
#005a32 128000
scale
#ebedf0 0
#c7e9c0 100
#a1d99b 400
#74c476 1600
#41ab5d 6400
#238b45 32000
#005a32 128000
Data from United States Cancer Statistics (2019)
https://www.cdc.gov/cancer/uscs/dataviz/download_data.htm United States Cancer Statistics
class visNotes

Crude mortality rate in the USA by cancer type and age.
style text-align:center;
magicSquares
table
%w40 %h40 %fs10
table
%w40 %h40 %fs10
MORTALITY_SQUARES
scale
#ebedf0 0
#c7e9c0 .01
#a1d99b .04
#74c476 .16
#41ab5d .32
#238b45 .64
#005a32 .9
scale
#ebedf0 0
#c7e9c0 .01
#a1d99b .04
#74c476 .16
#41ab5d .32
#238b45 .64
#005a32 .9
This provides a very rough estimate of cancer mortality rates by dividing annual deaths by the number of cases in each bucket. A better measure is 5 year survival rate. Data from United States Cancer Statistics (2019)
https://www.cdc.gov/cancer/uscs/dataviz/download_data.htm United States Cancer Statistics
class visNotes
Expand All @@ -83,4 +82,4 @@ code
code
MORTALITY_TABLE

import ../footer.scroll
import ../footer.scroll
4 changes: 2 additions & 2 deletions posts/cat-food.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<title>Cat food</title>
<script>/* This HTML was generated by 📜 Scroll v82.0.1. http://scroll.pub */</script>
<style>@media print {.doNotPrint {display: none !important;}}</style>
<link rel="canonical" href="https://cancerdb.com/posts/cat-food.html"></link>
<link rel="canonical" href="https://cancerdb.com/cat-food.html"></link>
<meta charset="iso-8859-1"></meta>
<meta name="viewport" content="width=device-width,initial-scale=1"></meta>
<meta name="description" content="CancerDB: Datasets about Cancer"></meta>
Expand Down Expand Up @@ -338,7 +338,7 @@
getLinks()[1].click()
});</script></div>
<p class="scrollViewSource doNotPrint">
<a href="https://github.com/breck7/CancerDB/blob/main/site/posts/cat-food.scroll">View source</a>
<a href="https://github.com/breck7/CancerDB/blob/main/site/cat-food.scroll">View source</a>
</p>

<div class="trueBaseThemeFooter">
Expand Down
9 changes: 5 additions & 4 deletions posts/cat-food.scroll
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import header.scroll
title Cat food
date 11-29-2022
groups Commercials
openGraphImage https://cancerdb.com/posts/catfood.png

import header.scroll
title Cat food

youTube https://www.youtube.com/embed/e0fPvvDBY6s

groups Commercials
keyboardNav
import ../footer.scroll
import ../footer.scroll
4 changes: 2 additions & 2 deletions posts/commercials.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<title>CancerDB Commercials</title>
<script>/* This HTML was generated by 📜 Scroll v82.0.1. http://scroll.pub */</script>
<style>@media print {.doNotPrint {display: none !important;}}</style>
<link rel="canonical" href="https://cancerdb.com/posts/commercials.html"></link>
<link rel="canonical" href="https://cancerdb.com/commercials.html"></link>
<meta charset="iso-8859-1"></meta>
<meta name="viewport" content="width=device-width,initial-scale=1"></meta>
<meta name="description" content="CancerDB: Datasets about Cancer"></meta>
Expand Down Expand Up @@ -330,7 +330,7 @@
<div class="scrollColumns" style="column-width:35ch;"></div>
</div>
<p class="scrollViewSource doNotPrint">
<a href="https://github.com/breck7/CancerDB/blob/main/site/posts/commercials.scroll">View source</a>
<a href="https://github.com/breck7/CancerDB/blob/main/site/commercials.scroll">View source</a>
</p>

<div class="trueBaseThemeFooter">
Expand Down
2 changes: 1 addition & 1 deletion posts/commercials.scroll
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import header.scroll
title CancerDB Commercials
snippets commercials
import ../footer.scroll
import ../footer.scroll
7 changes: 4 additions & 3 deletions posts/feed.scroll
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import ../settings.scroll
description CancerDB: a knowledge graph on Cancer that compiles to a public domain CSV file. #AccelerateTheCures
replace BASE_URL ..
permalink feed.xml
printFeed index
replace BASE_URL ..

import ../settings.scroll
printFeed index
6 changes: 3 additions & 3 deletions posts/feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<channel>
<title></title>
<link>https://cancerdb.com/</link>
<description>CancerDB: a knowledge graph on Cancer that compiles to a public domain CSV file. #AccelerateTheCures</description>
<lastBuildDate>Thu, 02 May 2024 10:47:16 +0000</lastBuildDate>
<description>CancerDB: Datasets about Cancer</description>
<lastBuildDate>Thu, 02 May 2024 10:51:42 +0000</lastBuildDate>
<language>en-us</language>
<item>
<title>The Hawai'i #CancerMoonshot</title>
<link>https://cancerdb.com/posts/hawaii-cancer-moonshot.html</link>
<link>https://cancerdb.com/hawaii-cancer-moonshot.html</link>
<pubDate>Thu, 15 Sep 2022 00:00:00 +0000</pubDate>
</item>
</channel>
Expand Down
4 changes: 2 additions & 2 deletions posts/funQuiz.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<title>Fun quiz</title>
<script>/* This HTML was generated by 📜 Scroll v82.0.1. http://scroll.pub */</script>
<style>@media print {.doNotPrint {display: none !important;}}</style>
<link rel="canonical" href="https://cancerdb.com/posts/funQuiz.html"></link>
<link rel="canonical" href="https://cancerdb.com/funQuiz.html"></link>
<meta charset="iso-8859-1"></meta>
<meta name="viewport" content="width=device-width,initial-scale=1"></meta>
<meta name="description" content="CancerDB: Datasets about Cancer"></meta>
Expand Down Expand Up @@ -338,7 +338,7 @@
getLinks()[1].click()
});</script></div>
<p class="scrollViewSource doNotPrint">
<a href="https://github.com/breck7/CancerDB/blob/main/site/posts/funQuiz.scroll">View source</a>
<a href="https://github.com/breck7/CancerDB/blob/main/site/funQuiz.scroll">View source</a>
</p>

<div class="trueBaseThemeFooter">
Expand Down
Loading

0 comments on commit a4ef3ad

Please sign in to comment.