Skip to content

Commit

Permalink
Add new slides and move several others to the appendices section
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvartan committed Oct 2, 2024
1 parent dc8fa5c commit 47e5efe
Show file tree
Hide file tree
Showing 46 changed files with 3,361 additions and 1,355 deletions.
2 changes: 2 additions & 0 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
source("renv/activate.R")

library(magrittr)
6 changes: 6 additions & 0 deletions R/_dev.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@
#
# quarto render
# quarto render index.qmd --to pdf

## Copy notes to clipboard -----

# here::here("notes.md") |>
# readr::read_lines() |>
# utils::writeClipboard()
61 changes: 61 additions & 0 deletions R/_post-render.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# library(beepr)
# library(groomr)
# library(magrittr)
# library(readr)
# library(stringr)
# library(utils)

# Remove empty lines from `README.md` -----

here::here("README.md") |> groomr::remove_blank_line_dups()

# Update `LICENSE.md` -----

file <- here::here("LICENSE.md")

data <-
file |>
readr::read_lines() |>
stringr::str_replace_all(
pattern = "20\\d{2}",
replacement = as.character(Sys.Date() |> lubridate::year())
)

data |> readr::write_lines(file)

## Add notes to `notes.md` -----

notes <-
here::here("index.qmd") |>
readr::read_lines() |>
groomr::split_by_pattern(include_start = TRUE) |>
lapply(
function(x) {
groomr::split_by_pattern(
x,
start_pattern = "\\{\\.notes\\}",
end_pattern = "^::",
include_start = FALSE,
name_list = FALSE
) |>
unlist()
}
)

out <- character()

for (i in seq_along(notes)) {
if (is.null(notes[[i]])) {
out <- append(out, c(names(notes)[i], ""))
} else {
out <- append(out, c(names(notes)[i], "", notes[[i]], ""))
}
}

out |> readr::write_lines(here::here("notes.md"))

here::here("notes.md") |> groomr::remove_blank_line_dups()

# Check if the script ran successfully -----

beepr::beep(1)
3 changes: 2 additions & 1 deletion _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ project:
type: website
output-dir: docs
render: [index.qmd]
post-render: "R/_post-render.R"

title: "Exploring complexity with agent-based models"
author: "Daniel Vartanian"
Expand Down Expand Up @@ -61,7 +62,7 @@ format:
menu:
titleSelector: [h1 h2]
useTextContentForMissingTitles: false
hideMissingTitles: true
hideMissingTitles: false

google-scholar: false
bibliography: references.bib
Binary file added docs/images/davida-s-figure-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/janssen-2020-figure-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/lewin-1993-figure-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/lewin-1993-figure-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/mechanical-clock-figure-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/mit-papert-figure-5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moore-1986-figure-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/national-geographic-2016-clip.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/yarn-colour.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,279 changes: 1,695 additions & 584 deletions docs/index.html

Large diffs are not rendered by default.

395 changes: 208 additions & 187 deletions docs/search.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/site_libs/revealjs/dist/theme/quarto.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://danielvartan.github.io/resiclima-pres/index.html</loc>
<lastmod>2024-09-25T02:19:03.702Z</lastmod>
<lastmod>2024-10-02T21:00:39.902Z</lastmod>
</url>
</urlset>
Binary file added images/claire-droppert-2021-02-28.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/claire-droppert-2021-02-28.mp4
Binary file not shown.
109 changes: 0 additions & 109 deletions images/complexity-explorer-logo-white.svg

This file was deleted.

Binary file added images/davida-s-figure-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/davida-s-figure-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/janssen-2020-figure-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/lewin-1993-figure-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/lewin-1993-figure-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/martine-maes-sterlings-figure-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/martine-maes-sterlings-figure-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added images/mechanical-clock-figure-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/mechanical-clock.png
Binary file not shown.
Binary file added images/mit-papert-figure-1.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mit-papert-figure-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mit-papert-figure-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mit-papert-figure-4.jpg
Binary file added images/mit-papert-figure-5.jpg
Binary file added images/moore-1986-figure-1.png
Binary file added images/netlogoweb-logo-1.png
Binary file added images/papert-2020-figure-1.jpg
Binary file added images/wilenski-1998-flocking-model-figure-1.gif
Binary file modified images/yarn-colour.jpg
Loading

0 comments on commit 47e5efe

Please sign in to comment.