Skip to content

Commit

Permalink
Put a few more conditional sections based on export mode or not and a…
Browse files Browse the repository at this point in the history
…dded an exported pdf to files.
  • Loading branch information
nstrayer committed Sep 27, 2019
1 parent 9369ec6 commit ccff2e5
Show file tree
Hide file tree
Showing 5 changed files with 30,254 additions and 121 deletions.
62 changes: 46 additions & 16 deletions index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ output:
pagedown::html_resume:
css: ['styles.css']
# set it to true for a self-contained HTML page but it'll take longer to render
self_contained: false
self_contained: true
---

```{r, include=FALSE}
Expand All @@ -19,7 +19,7 @@ library(glue)
library(tidyverse)
# Set this to true to have links turned into footnotes at the end of the document
PDF_EXPORT <- TRUE
PDF_EXPORT <- FALSE
# Holds all the links that were inserted for placement at the end
links <- c()
Expand Down Expand Up @@ -114,21 +114,31 @@ position_data <- read_csv('positions.csv') %>%
nest(data = c(-id, -section))
```



<style>
.blocks {
break-inside: avoid;
```{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>")
}
</style>
```


Aside
================================================================================


![logo](beta_dist.png){width=100%}

View this CV online with links at _nickstrayer.me/cv_
```{r}
# When in export mode the little dots are unaligned, so fix that.
if(PDF_EXPORT){
cat("View this CV online with links at _nickstrayer.me/cv_")
}
```

Contact {#contact}
--------------------------------------------------------------------------------
Expand Down Expand Up @@ -212,14 +222,23 @@ print_section(position_data, 'research_positions')
Industry Experience {data-icon=suitcase}
--------------------------------------------------------------------------------

::: aside
I have worked in a variety of roles ranging from journalist to software engineer to data scientist. I like collaborative environments where I can learn from my peers.
:::

```{r}
print_section(position_data, 'industry_positions')
```

<br>

Teaching Experience {data-icon=chalkboard-teacher}
--------------------------------------------------------------------------------

::: aside
I am passionate about education. I believe that no topic is too complex if the teacher is empathetic and willing to think about new methods of approaching task.
:::

```{r}
print_section(position_data, 'teaching_positions')
```
Expand All @@ -229,6 +248,10 @@ Selected Data Science Writing {data-icon=chart-line}
--------------------------------------------------------------------------------


::: aside
I regularly blog about data science and visualization on my blog [LiveFreeOrDichotomize.](https://livefreeordichotomize.com/)
:::

```{r}
print_section(position_data, 'data_science_writings')
```
Expand Down Expand Up @@ -257,22 +280,29 @@ Selected Publications, Posters, and Talks {data-icon=book}
--------------------------------------------------------------------------------


::: aside
I regularly blog about data science and visualization on my blog [LiveFreeOrDichotomize.](https://livefreeordichotomize.com/)
:::

```{r}
print_section(position_data, 'academic_articles')
```



```{r}
if(PDF_EXPORT){
cat("
Links {data-icon=link}
--------------------------------------------------------------------------------
<br>
```{r}
walk2(links, 1:length(links), function(link, index){
print(glue('{index}. {link}'))
})
")
walk2(links, 1:length(links), function(link, index){
print(glue('{index}. {link}'))
})
}
```


30,284 changes: 30,198 additions & 86 deletions index.html

Large diffs are not rendered by default.

16 changes: 0 additions & 16 deletions scatch.R

This file was deleted.

Binary file added strayer_cv.pdf
Binary file not shown.
13 changes: 10 additions & 3 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ sup{
font-style: italic;
}

.blocks {
break-inside: avoid;
}

.aside {
font-size: 0.75rem;
}

@page{
size: letter portrait;
Expand All @@ -37,7 +44,7 @@ sup{
--margin-left: 0.25in;
--content-width: calc(var(--page-width) - var(--margin-right) - var(--margin-left));
--root-font-size: 12pt;
--sidebar-width: 11rem;
--sidebar-width: 12rem;
--sidebar-background-color: #f7fbff;
--main-width: calc(var(--content-width) - var(--sidebar-width));
--decorator-horizontal-margin: 0.2in;
Expand Down Expand Up @@ -153,9 +160,9 @@ img{
}

.aside{
width: var(--sidebar-width);
width: calc(var(--sidebar-width) + 9px);
padding: 0.6in var(--sidebar-horizontal-padding);
font-size: 0.8rem;
font-size: 0.75rem;
float: right;
position: absolute;
right: 0;
Expand Down

0 comments on commit ccff2e5

Please sign in to comment.