-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathREADME.qmd
More file actions
85 lines (65 loc) · 2.09 KB
/
README.qmd
File metadata and controls
85 lines (65 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
format:
gfm: default
html:
from: markdown+emoji
---
```{r}
#| include: false
library(yaml)
library(dplyr)
library(lubridate)
library(purrr)
# Read presentations data
presentations_data <- read_yaml("_presentations.yml")$presentations
# Convert dates to Date objects and sort by date (most recent first)
presentations <- presentations_data %>%
map(function(p) {
p$date <- as.Date(p$date)
return(p)
}) %>%
# Sort by date (newest first)
map_dfr(~as.data.frame(.x, stringsAsFactors = FALSE)) %>%
arrange(desc(date))
```
# Talks & Presentations
This repo contains presentations I made in several places.
These presentations are available through `https://cderv.github.io/presentations/<FOLDER_NAME>`
Some of the presentation are also hosted elsewhere but are linked here. Redirects from `https://cderv.github.io/presentations/<FOLDER_NAME>` to the actual hosting locations are provided for convenience.
## Currently Online
```{r}
#| echo: false
#| results: asis
format_presentation <- function(p) {
# Format date for display
date_display <- format(p$date, "%d/%m/%Y")
# Set flag emoji based on language
flag <- ifelse(p$language == "fr", ":fr:", ":gb:")
# Start with the bullet point, flag and title
line <- paste0("+ ", flag, " [", p$title, "](", p$url, ") ", date_display, ", ", p$event, ".")
# Add repo if available
if (!is.na(p$repo)) {
line <- paste0(line, " [Repo](", p$repo, ").")
}
# Add talk page if available
if (!is.na(p$talk_page)) {
line <- paste0(line, " Talk page: ", p$talk_page)
}
# Add meetup link if available
if (!is.na(p$meetup_link)) {
line <- paste0(line, " [Event page](", p$meetup_link, ")")
}
# Add description if available
if (!is.na(p$description)) {
line <- paste0(line, " ", p$description)
}
return(line)
}
presentations_text <- map_chr(split(presentations, 1:nrow(presentations)), function(p) {
format_presentation(p)
})
# Output each presentation on its own line
cat(paste(presentations_text, collapse = "\n\n"))
```
## Licence
[CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)