-
Notifications
You must be signed in to change notification settings - Fork 0
/
resume.rmd
173 lines (143 loc) · 3.25 KB
/
resume.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
---
title: "Marco Zanotti's Resume"
author: Marco Zanotti
date: "`r Sys.Date()`"
params:
pdf_mode:
value: true
lang:
value: 'en'
resume:
value: true
output:
pagedown::html_resume:
css: ['dd_cv.css', 'resume']
self_contained: true
---
```{r, include=FALSE}
knitr::opts_chunk$set(
results = 'asis',
echo = FALSE
)
library(magrittr) # For the pipe
source("R/cv_printing_functions.r")
if (params$lang == "en") {
Sys.setlocale("LC_ALL", "en_US.UTF-8")
} else {
Sys.setlocale("LC_ALL", "it_IT.UTF-8")
}
# Read in all data and initialize a CV printer object
cv <- create_cv_object(
data_location = "https://docs.google.com/spreadsheets/d/1FwVp14baq9CeUS2x8nniXf9tBCBc3hJJxbbH3DDZziY/edit?usp=sharing",
resume = params$resume
) %>%
clean_cv_object(language = params$lang)
```
```{r}
# When in pdf export mode the little dots are unaligned, so fix that with some conditional CSS.
if (params$pdf_mode) {
cat("
<style>
:root{
--decorator-outer-offset-left: -6.5px;
}
</style>")
}
```
Main
================================================================================
::: aside
```{r contacts}
if (params$lang == "en") {
cat("#### Contacts {#contact}\n")
} else {
cat("#### Contatti {#contact}\n")
}
cv %>% print_contacts()
```
```{r statistics}
if (params$lang == "en") {
cat("#### Statistics\n")
} else {
cat("#### Statistica\n")
}
cv %>% print_text_block("statistics_skills_aside")
```
```{r skills}
if (params$lang == "en") {
cat("#### Skills\n")
} else {
cat("#### Conoscenze\n")
}
cv %>% print_skill_bars(
section_ids = c("programming", "dataviz", "database", "versioning", "integration", "cloud", "os"),
resume = TRUE
)
```
```{r languages}
if (params$lang == "en") {
cat("#### Languages\n")
} else {
cat("#### Lingue\n")
}
cv %>% print_skill_bars(section_ids = "language")
```
```{r disclaimer}
if (params$lang == "en") {
cat(
"Made with the R package [**pagedown**](https://github.com/rstudio/pagedown).
*Last updated on *"
)
} else {
cat(
"Creato con il pacchetto R [**pagedown**](https://github.com/rstudio/pagedown).
*Aggiornato a *"
)
}
```
*`r stringr::str_to_title(format(Sys.time(), '%B %Y'))`*
:::
Marco Zanotti {#title}
--------------------------------------------------------------------------------
```{r}
cv %>% print_text_block("introduction")
```
```{r professional_experience}
if (params$lang == "en") {
cat("## Professional Experience {data-icon=suitcase}\n")
} else {
cat("## Esperienza Professionale {data-icon=suitcase}\n")
}
cv %>% print_experience("professional_experience")
```
```{r teaching_experience}
if (params$lang == "en") {
cat("## Teaching Experience {data-icon=chalkboard-teacher}\n")
} else {
cat("## Insegnamento {data-icon=chalkboard-teacher}\n")
}
cv %>% print_experience("teaching_experience")
```
```{r publications}
if (params$lang == "en") {
cat("## Publications {data-icon=book-open}\n")
} else {
cat("## Pubblicazioni {data-icon=book-open}\n")
}
cv %>% print_experience("publication")
```
```{r education}
if (params$lang == "en") {
cat("## Education {data-icon=graduation-cap}\n")
} else {
cat("## Istruzione {data-icon=graduation-cap}\n")
}
cv %>% print_experience("education")
```