forked from nstrayer/cv
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.Rmd
258 lines (178 loc) · 5.57 KB
/
index.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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
---
title: "Desiree De Leon's CV"
author: Desiree De Leon
date: "`r Sys.Date()`"
output:
pagedown::html_resume:
css: ['css/styles.css', 'resume']
# set it to true for a self-contained HTML page but it'll take longer to render
self_contained: true
---
```{r, include=FALSE}
knitr::opts_chunk$set(
results='asis',
echo = FALSE
)
library(glue)
library(tidyverse)
# ======================================================================
# These variables determine how the the data is loaded and how the exports are
# done.
# Is data stored in google sheets? If no data will be gather from the csvs/
# folder in project
using_googlesheets <- TRUE
# Just the copied URL from the sheet
positions_sheet_loc <- "https://docs.google.com/spreadsheets/d/1eTpZBkKZH8gZJXyilYMwVmcna96mBdyhLxBB_DjQwAM/edit?usp=sharing"
# Is this sheet available for anyone to read? If you're using a private sheet
# set this to false and go to gather_data.R and run the data loading manually
# once to cache authentication
sheet_is_publicly_readable <- TRUE
# Is the goal of this knit to build a document that is exported to PDF? If so
# set this to true to have links turned into footnotes at the end of the
# document
PDF_EXPORT <- FALSE
CV_PDF_LOC <- "github.com/dcossyleon/cv/raw/master/cv.pdf"
CV_HTML_LOC <- "dcossyleon.github.io/cv/"
# A global (gasp) variable that holds all the links that were inserted for
# placement at the end
links <- c()
# ======================================================================
# Now we source two external scripts. One contains functions for building the
# text output and the other loads up our data from either googlesheets or csvs
# Functions for building sections from CSV data
source('parsing_functions.R')
# Load data for CV/Resume
source('gather_data.R')
```
```{r}
# When in export mode the little dots are unaligned, so fix that.
if(PDF_EXPORT){
cat("
<style>
:root{
--decorator-outer-offset-left: -6.5px;
}
</style>")
}
```
<div class="header-block">
<div class="header-block-inner">
<div class="title">Desirée De Leon</div>
</div>
</div>
<div class = "subtitle">
```{r intro}
print_text_block(text_blocks, 'intro')
```
</div>
Aside
================================================================================
![logo](logo.jpeg){width=90%}
```{r}
# When in export mode the little dots are unaligned, so fix that.
if(PDF_EXPORT){
glue("View this CV online with links at _{CV_HTML_LOC}_")
} else {
glue("[<i class='fas fa-download'></i> Download CV as a PDF]({CV_PDF_LOC})")
}
```
Contact {#contact}
--------------------------------------------------------------------------------
```{r}
contact_info %>%
glue_data("- <i class='fa fa-{icon}'></i> {contact}")
```
Skills {#skills}
--------------------------------------------------------------------------------
<i class="fab fa-r-project"></i>
<!--i class="fab fa-html5"></i--> HTML
<!--i class="fab fa-css3-alt"></i--> CSS
<!--i class="fas fa-code-branch"></i--> Git
<!--i class="fab fa-adobe"></i--> Photoshop
<!--i class="fab fa-adobe"></i--> Illustrator
Disclaimer {#disclaimer}
--------------------------------------------------------------------------------
Made with the R package [**pagedown**](https://github.com/rstudio/pagedown).
Source code available: [github.com/dcossyleon/cv](https://github.com/dcossyleon/cv).
Updated: `r Sys.Date()`.
Main
================================================================================
Desiree De Leon {#title}
--------------------------------------------------------------------------------
Education {data-icon=graduation-cap data-concise=true}
--------------------------------------------------------------------------------
```{r}
print_section(position_data, 'education')
```
Awards & Scholarships {data-icon=trophy}
--------------------------------------------------------------------------------
```{r}
print_section(position_data, 'honors_awards')
```
Research & Data Science Experience {data-icon=laptop}
--------------------------------------------------------------------------------
::: aside
```{r}
print_text_block(text_blocks, 'data_aside')
```
:::
```{r}
print_section(position_data, 'research_data')
```
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Teaching and Project Management {data-icon=chalkboard-teacher}
--------------------------------------------------------------------------------
::: aside
```{r}
print_text_block(text_blocks, 'teaching_experience_aside')
```
:::
```{r}
print_section(position_data, 'teaching_positions')
```
Web Design & Illustration {data-icon=pen-nib}
--------------------------------------------------------------------------------
::: aside
```{r}
print_text_block(text_blocks, 'design_aside')
```
:::
```{r}
print_section(position_data, 'design')
```
<!-- These breaks just force a new page so section doesnt get cut off -->
<br>
<br>
Talks {data-icon=microphone-alt}
--------------------------------------------------------------------------------
```{r}
print_section(position_data, 'talks')
```
Publications {data-icon=book}
--------------------------------------------------------------------------------
```{r}
print_section(position_data, 'academic_articles')
```
Poster Presentations {data-icon=book}
--------------------------------------------------------------------------------
```{r}
print_section(position_data, 'posters')
```
```{r}
if(PDF_EXPORT){
cat("
Links {data-icon=link}
--------------------------------------------------------------------------------
<br>
")
walk2(links, 1:length(links), function(link, index){
print(glue('{index}. {link}'))
})
}
```