forked from ulyngs/pagedownCV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathone-column-paged.Rmd
224 lines (191 loc) · 6.5 KB
/
one-column-paged.Rmd
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
---
title: "Ulrik Lyngs <br> Curriculum vitae"
output:
pagedown::html_paged:
css: ["css/one-column-paged.css", "https://use.fontawesome.com/releases/v5.7.2/css/all.css"]
number_sections: false
links-to-footnotes: true
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
library(tidyverse)
library(knitr)
library(lubridate)
#### publications #####
publications <- read_csv("_content/publications.csv")
#### cv entries #####
cv_entries <- read_csv("_content/cv_entries.csv") %>%
mutate(year_begin = year(date)) %>%
mutate(year_end = case_when(
date_end == "present" ~ date_end,
!is.na(date_end) ~ str_sub(date_end, 1, 4),
is.na(date_end) ~ date_end
)) %>%
mutate(year = ifelse((is.na(year_end) | year_begin == year_end),
year_begin,
str_c(year_begin, " --- ", year_end)))
```
<div class="grid-container">
<!-- top row -->
```{block type="grid-item", echo=TRUE}
## Personal summary {.summary}
I am a computer scientist and cognitive psychologist, working on design patterns that support self-control over digital device use.
I am passionate about open science and teach workshops on reproducible research with R and R Markdown.
```
```{block type='grid-item', echo=TRUE}
## Contact information {.box}
<div class="info-box">
| Center | Left |
|:------:|:-----|
| <i class="fas fa-map-marker-alt"></i>|Department of Computer Science,\
University of Oxford, UK|
| <i class="fa fa-envelope"></i> | ulrik.lyngs\@cs.ox.ac.uk |
| <i class="fas fa-globe"></i> | [ulriklyngs.com](https://ulriklyngs.com) |
| <i class="fab fa-github"></i> | [ulyngs](https://github.com/ulyngs) |
</div>
```
</div>
## Education {.education .nohead .set-width}
```{r}
cv_entries %>%
filter(type == 'education') %>%
mutate(what = str_c(what, ", ", where)) %>%
mutate(year = str_c(year_begin, " --- ", year_end)) %>%
select(year, what) %>%
kable()
```
## Awards and honours {.grants .nohead .set-width}
```{r}
cv_entries %>%
filter(type == 'awards',
is.na(one_column_paged)) %>%
mutate(what = str_c(what, ", ", where)) %>%
select(year_begin, what) %>%
kable()
```
## Grants {.grants .nohead .set-width}
```{r}
cv_entries %>%
filter(type == 'minor_grants' | type == 'major_grants', is.na(one_column_paged)) %>%
mutate(what = if_else(!is.na(additional_info),
str_c(what, " (", additional_info, "), ", where),
str_c(what, ", ", where))) %>%
select(year_begin, what) %>%
kable()
```
<!-- <br class="pageBreak"> -->
## Publications {.nohead .publications .set-width}
```{r}
publications_table <- publications %>%
arrange(desc(date), type) %>%
mutate(author_year = str_c(authors_full, " (", year(date), "). ")) %>%
mutate(title = ifelse(!is.na(url), str_c("[", title, "](", url, ")"), title)) %>% #turn title into link
mutate(citation = ifelse(!is.na(award),
str_c(author_year, title, venue, "<i class='fas fa-award'></i><em>", award, "</em>", sep = " "),
str_c(author_year, title, venue, sep = " "))) %>%
mutate(citation = str_replace(citation, "Ulrik Lyngs", "__Ulrik Lyngs__")) # make my name bold
publications_table %>%
filter(type != "master's thesis") %>%
select(type, citation) %>%
knitr::kable()
```
<!-- <br class="pageBreak"> -->
## Talks {.nohead .talks .set-width}
```{r}
cv_entries %>%
filter(type == 'talk') %>%
mutate(what = str_c("*", what, "*, ", where)) %>%
select(year_begin, what) %>%
kable()
```
## Poster presentations {.nohead .posters .set-width}
```{r}
cv_entries %>%
filter(type == 'poster') %>%
mutate(what = str_c("*", what, "*, ", where)) %>%
select(year_begin, what) %>%
arrange(desc(year_begin)) %>%
kable()
```
## Media coverage {.media .nohead .set-width}
```{r}
cv_entries %>%
filter(type == 'media') %>%
select(year_begin, what) %>%
kable()
```
<br class="pageBreak">
## Teaching experience {.teaching .nohead .set-width}
```{r}
cv_entries %>%
filter(type == 'teaching') %>%
mutate(what = ifelse(!is.na(additional_info),
str_c("<span class='work-title'>", what, "</span><br class='work-break'>", where, "<br>", additional_info),
str_c("<span class='work-title'>", what, "</span><br class='work-break'>", where))) %>%
select(year, what) %>%
kable()
```
## Service {.service .nohead .set-width}
```{r}
cv_entries %>%
filter(type == 'service') %>%
mutate(year_end = ifelse(year_end == "present", "", year_end)) %>%
mutate(where = ifelse(!is.na(url), str_c("[", where, "](", url, ")"), where)) %>%
mutate(what = str_c(what, ", ", where)) %>%
select(year, what) %>%
kable()
```
## Selected work experience {.work .nohead .vertical-top .set-width}
```{r}
cv_entries %>%
filter(type == 'work', is.na(one_column_paged)) %>%
mutate(additional_info = replace_na(additional_info, "")) %>%
mutate(what = str_c("<span class='work-title'>", what, "</span><br class='work-break'>", where, "<br>", additional_info)) %>%
select(year, what) %>%
kable()
```
## Professional development {.prof-dev .nohead .set-width}
```{r}
cv_entries %>%
filter(type == 'prof-dev') %>%
mutate(what = str_c(what, ", ", where)) %>%
select(year_begin, what) %>%
kable()
```
## Technical skills {.technical .nohead .set-width}
```{r}
cv_entries %>%
filter(type == 'technical') %>%
mutate(icon = case_when(
str_detect(what, "data analysis") ~ "fa-bar-chart",
str_detect(what, "research") ~ "fa-flask",
str_detect(what, "Web") ~ "fa-laptop"
)) %>%
mutate(icon = str_c("<i class='fa fa-lg ", icon, "'></i>")) %>%
mutate(what = str_c(what, " ", additional_info)) %>%
select(icon, what) %>%
kable(escape = FALSE)
```
## Software development {.nohead .vertical-top .set-width}
```{r}
cv_entries %>%
filter(type == 'programming') %>%
replace_na(list(where = "", additional_info = "")) %>%
mutate(what = str_c(what, ", ", where, "<br>", additional_info)) %>%
select(year_begin, what) %>%
arrange(desc(year_begin)) %>%
kable(align = c('l', 'l'))
```
<!-- <br class="pageBreak"> -->
## Personal skills & volunteering {.personal .nohead .set-width}
```{r}
cv_entries %>%
filter(type == 'volunteering' & professional_2_page == 'y') %>%
mutate(what = str_c("<span class='work-title'>", what, "</span><br class='work-break'>", where)) %>%
mutate(what = ifelse(!is.na(additional_info), str_c(what, "<br>", additional_info), what)) %>%
arrange(order, desc(year_end), desc(year)) %>%
select(year, what) %>%
kable()
```
<!-- <br class="pageBreak"> -->
### Links