forked from nstrayer/cv
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.Rmd
163 lines (118 loc) · 3.62 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
---
title: "Riccardo Esclapon's CV"
author: Riccardo Esclapon
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
#knit: pagedown::chrome_print
---
<!-- TO RENDER PDF, ADD THIS TO BOTTOM OF YAML: -->
<!-- knit: pagedown::chrome_print -->
```{r, include=FALSE}
knitr::opts_chunk$set(
results='asis',
echo = FALSE
)
library(glue)
library(tidyverse)
library(googlesheets4)
# ======================================================================
# 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/1lKNWy2etJRj_4Q5yPmWiKk8LO7wElhBliZ-90j2ABX4"
# 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 <- "https://github.com/ries9112/cv/raw/master/esclapon_cv.pdf"
CV_HTML_LOC <- "https://ricky-cv.netlify.com/"
# 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>")
}
```
# Aside
![logo](logo.png){width="100%"}
```{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 a PDF of this CV]({CV_PDF_LOC})")
}
```
## Contact {#contact}
```{r}
contact_info %>%
glue_data("- <i class='fa fa-{icon}'></i> {contact}")
```
## Language Skills {#skills}
```{r}
build_skill_bars(skills)
```
## Disclaimer {#disclaimer}
Made w/ [**pagedown**](https://github.com/rstudio/pagedown).
Original source code: [github.com/nstrayer/cv](https://github.com/nstrayer/cv).
This resume was created by forking [**Nick Strayer's**](https://github.com/nstrayer) repository
Last updated on `r Sys.Date()`.
# Main
## Riccardo Esclapon {#title}
```{r}
print_text_block(text_blocks, 'intro_full')
```
## Positions {data-icon="suitcase"}
```{r}
position_data %>% print_section('positions')
```
## Education {data-icon="graduation-cap" data-concise="true"}
```{r}
print_section(position_data, 'education')
```
## Independent Projects {data-icon="bar-chart"}
```{r}
position_data %>% print_section('other-experience')
```
## Learning Certificates {data-icon="book"}
```{r}
position_data %>% print_section('certifications')
```
```{r}
if(PDF_EXPORT){
cat("
Links {data-icon=link}
--------------------------------------------------------------------------------
<br>
")
walk2(links, 1:length(links), function(link, index){
print(glue('{index}. {link}'))
})
}
```