51 |
52 |  |
53 | Doutorando em Estatística no IME-USP |
54 |
55 |
56 |  |
57 | Secretário-geral da Associação Brasileira de Jurimetria |
58 |
59 |
60 |  |
61 | Sócio da Terranova Consultoria |
62 |
63 |
64 |  |
65 | Sócio da Curso-R |
66 |
67 |
68 |
69 | ---
70 |
71 | # Hoje
72 |
73 | - Github Actions live coding
74 |
75 | - Exemplo com o [repositório do SeR](https://github.com/eventoseroficial/Data_and_Code)
76 |
77 | ```{r, echo=FALSE, fig.align='center'}
78 | knitr::include_graphics("https://media.giphy.com/media/LmNwrBhejkK9EFP504/giphy.gif")
79 | ```
80 |
81 |
82 | ---
83 |
84 | # Gráfico
85 |
86 | ```{r xaringanExtra-clipboard, echo=FALSE}
87 | xaringanExtra::use_clipboard()
88 | # These are the defaults
89 | xaringanExtra::use_extra_styles(
90 | hover_code_line = TRUE, #<<
91 | mute_unhighlighted_code = TRUE #<<
92 | )
93 | xaringanExtra::use_panelset()
94 | ```
95 |
96 | .panelset[
97 |
98 | .panel[.panel-name[Pacotes]
99 |
100 | ```{r, message=FALSE, warning=FALSE}
101 | library(gh)
102 | library(magrittr)
103 | library(purrr)
104 | library(tibble)
105 | library(ggplot2)
106 | library(lubridate)
107 | ```
108 |
109 |
110 | ]
111 |
112 | .panel[.panel-name[Código]
113 |
114 | ```{r grafico-lab, eval=FALSE, echo=TRUE}
115 | gh("/repos/eventoseroficial/Data_and_Code/commits") %>%
116 | map_chr(pluck, "commit", "committer", "date") %>%
117 | ymd_hms() %>%
118 | floor_date("day") %>%
119 | as.Date() %>%
120 | enframe() %>%
121 | ggplot(aes(value)) +
122 | geom_bar(fill = "darkblue", alpha = .8) +
123 | theme_minimal(14) +
124 | labs(
125 | x = "Data",
126 | y = "Quantidade de commits",
127 | title = "Quantidade de commits no repositório do SeR 2021"
128 | )
129 | ```
130 |
131 | ]
132 |
133 | .panel[.panel-name[Gráfico]
134 |
135 | ```{r grafico, eval=TRUE, echo=FALSE, fig.align="center", out.height="400px", dpi = 500,fig.height=4, fig.width=8}
136 | gh::gh("/repos/eventoseroficial/Data_and_Code/commits") %>%
137 | purrr::map_chr(purrr::pluck, "commit", "committer", "date") %>%
138 | lubridate::ymd_hms() %>%
139 | lubridate::floor_date("day") %>%
140 | as.Date() %>%
141 | tibble::enframe() %>%
142 | ggplot2::ggplot() +
143 | ggplot2::aes(value) +
144 | ggplot2::geom_bar(fill = "darkblue", alpha = .8) +
145 | ggplot2::theme_minimal(14) +
146 | ggplot2::labs(
147 | x = "Data",
148 | y = "Quantidade de commits",
149 | title = "Quantidade de commits no repositório do SeR 2021",
150 | caption = "Fonte: https://github.com/eventoseroficial/Data_and_Code"
151 | )
152 | ```
153 |
154 | ]
155 |
156 | .panel[.panel-name[Link]
157 |
158 | .center[
159 |
160 | ### https://github.com/eventoseroficial/Data_and_Code
161 |
162 | ]
163 |
164 | ]
165 |
166 | ]
167 |
--------------------------------------------------------------------------------
/Julio Trecenti/jtrecenti.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/eventoseroficial/Data_and_Code_2021/06d2507c14efdf359dfe9280326c0996688f1576/Julio Trecenti/jtrecenti.pdf
--------------------------------------------------------------------------------
/Julio Trecenti/jtrecenti_files/figure-html/grafico-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/eventoseroficial/Data_and_Code_2021/06d2507c14efdf359dfe9280326c0996688f1576/Julio Trecenti/jtrecenti_files/figure-html/grafico-1.png
--------------------------------------------------------------------------------
/Julio Trecenti/libs/header-attrs/header-attrs.js:
--------------------------------------------------------------------------------
1 | // Pandoc 2.9 adds attributes on both header and div. We remove the former (to
2 | // be compatible with the behavior of Pandoc < 2.8).
3 | document.addEventListener('DOMContentLoaded', function(e) {
4 | var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
5 | var i, h, a;
6 | for (i = 0; i < hs.length; i++) {
7 | h = hs[i];
8 | if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6
9 | a = h.attributes;
10 | while (a.length > 0) h.removeAttribute(a[0].name);
11 | }
12 | });
13 |
--------------------------------------------------------------------------------
/Julio Trecenti/libs/panelset/panelset.css:
--------------------------------------------------------------------------------
1 | /* prefixed by https://autoprefixer.github.io (PostCSS: v7.0.23, autoprefixer: v9.7.3) */
2 |
3 | .panelset {
4 | width: 100%;
5 | position: relative;
6 | --panel-tabs-border-bottom: #ddd;
7 | --panel-tab-foreground: currentColor;
8 | --panel-tab-background: unset;
9 | --panel-tab-active-foreground: currentColor;
10 | --panel-tab-active-background: unset;
11 | --panel-tab-hover-foreground: currentColor;
12 | --panel-tab-hover-background: unset;
13 | --panel-tab-active-border-color: currentColor;
14 | --panel-tab-hover-border-color: currentColor;
15 | --panel-tab-inactive-opacity: 0.5;
16 | --panel-tab-font-family: inherit;
17 | }
18 |
19 | .panelset * {
20 | box-sizing: border-box;
21 | }
22 |
23 | .panelset .panel-tabs {
24 | display: -webkit-box;
25 | display: flex;
26 | flex-wrap: wrap;
27 | -webkit-box-orient: horizontal;
28 | -webkit-box-direction: normal;
29 | flex-direction: row;
30 | -webkit-box-pack: start;
31 | justify-content: start;
32 | -webkit-box-align: center;
33 | align-items: center;
34 | overflow-y: visible;
35 | overflow-x: auto;
36 | -webkit-overflow-scrolling: touch;
37 | padding: 0 0 2px 0;
38 | box-shadow: inset 0 -2px 0px var(--panel-tabs-border-bottom);
39 | }
40 |
41 | .panelset .panel-tabs * {
42 | -webkit-transition: opacity 0.5s ease;
43 | transition: opacity 0.5s ease;
44 | }
45 |
46 | .panelset .panel-tabs .panel-tab {
47 | min-height: 50px;
48 | display: -webkit-box;
49 | display: flex;
50 | -webkit-box-pack: center;
51 | justify-content: center;
52 | -webkit-box-align: center;
53 | align-items: center;
54 | padding: 0.5em 1em;
55 | font-family: var(--panel-tab-font-family);
56 | opacity: var(--panel-tab-inactive-opacity);
57 | border-top: 2px solid transparent;
58 | border-bottom: 2px solid transparent;
59 | margin-bottom: -2px;
60 | color: var(--panel-tab-foreground);
61 | background-color: var(--panel-tab-background);
62 | list-style: none;
63 | z-index: 5;
64 | }
65 |
66 | .panelset .panel-tabs .panel-tab > a {
67 | color: currentColor;
68 | text-decoration: none;
69 | border: none;
70 | }
71 |
72 | .panelset .panel-tabs .panel-tab > a:focus {
73 | outline: none;
74 | text-decoration: none;
75 | border: none;
76 | }
77 |
78 | .panelset .panel-tabs .panel-tab > a:hover {
79 | text-decoration: none;
80 | border: none;
81 | }
82 |
83 | .panelset .panel-tabs .panel-tab:hover {
84 | border-bottom-color: var(--panel-tab-hover-border-color);
85 | color: var(--panel-tab-hover-foreground);
86 | background-color: var(--panel-tab-hover-background);
87 | opacity: 1;
88 | cursor: pointer;
89 | z-index: 10;
90 | }
91 |
92 | .panelset .panel-tabs .panel-tab:focus {
93 | outline: none;
94 | color: var(--panel-tab-hover-foreground);
95 | border-bottom-color: var(--panel-tab-hover-border-color);
96 | background-color: var(--panel-tab-hover-background);
97 | }
98 |
99 | .panelset .panel-tabs .panel-tab.panel-tab-active {
100 | border-top-color: var(--panel-tab-active-border-color);
101 | color: var(--panel-tab-active-foreground);
102 | background-color: var(--panel-tab-active-background);
103 | opacity: 1;
104 | }
105 |
106 | .panelset .panel {
107 | display: none;
108 | }
109 |
110 | .panelset .panel-active {
111 | display: block;
112 | }
113 |
--------------------------------------------------------------------------------
/Julio Trecenti/libs/remark-css/default.css:
--------------------------------------------------------------------------------
1 | a, a > code {
2 | color: rgb(249, 38, 114);
3 | text-decoration: none;
4 | }
5 | .footnote {
6 | position: absolute;
7 | bottom: 3em;
8 | padding-right: 4em;
9 | font-size: 90%;
10 | }
11 | .remark-code-line-highlighted { background-color: #ffff88; }
12 |
13 | .inverse {
14 | background-color: #272822;
15 | color: #d6d6d6;
16 | text-shadow: 0 0 20px #333;
17 | }
18 | .inverse h1, .inverse h2, .inverse h3 {
19 | color: #f3f3f3;
20 | }
21 | /* Two-column layout */
22 | .left-column {
23 | color: #777;
24 | width: 20%;
25 | height: 92%;
26 | float: left;
27 | }
28 | .left-column h2:last-of-type, .left-column h3:last-child {
29 | color: #000;
30 | }
31 | .right-column {
32 | width: 75%;
33 | float: right;
34 | padding-top: 1em;
35 | }
36 | .pull-left {
37 | float: left;
38 | width: 47%;
39 | }
40 | .pull-right {
41 | float: right;
42 | width: 47%;
43 | }
44 | .pull-right + * {
45 | clear: both;
46 | }
47 | img, video, iframe {
48 | max-width: 100%;
49 | }
50 | blockquote {
51 | border-left: solid 5px lightgray;
52 | padding-left: 1em;
53 | }
54 | .remark-slide table {
55 | margin: auto;
56 | border-top: 1px solid #666;
57 | border-bottom: 1px solid #666;
58 | }
59 | .remark-slide table thead th { border-bottom: 1px solid #ddd; }
60 | th, td { padding: 5px; }
61 | .remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) { background: #eee }
62 |
63 | @page { margin: 0; }
64 | @media print {
65 | .remark-slide-scaler {
66 | width: 100% !important;
67 | height: 100% !important;
68 | transform: scale(1) !important;
69 | top: 0 !important;
70 | left: 0 !important;
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/Julio Trecenti/libs/xaringanExtra-clipboard/xaringanExtra-clipboard.css:
--------------------------------------------------------------------------------
1 | .xaringanextra-clipboard-button {
2 | position: absolute;
3 | top: 0;
4 | right: 0;
5 | font-size: 0.8em;
6 | padding: 0.5em;
7 | display: none;
8 | background-color: transparent;
9 | border: none;
10 | opacity: 0.5;
11 | border-radius: 0;
12 | }
13 |
14 | .xaringanextra-clipboard-button:hover {
15 | background-color: rgba(0, 0, 0, 0.1);
16 | border: none;
17 | opacity: 1;
18 | }
19 |
20 | :hover > .xaringanextra-clipboard-button {
21 | display: block;
22 | transform: translateY(0);
23 | }
24 |
--------------------------------------------------------------------------------
/Julio Trecenti/libs/xaringanExtra-clipboard/xaringanExtra-clipboard.js:
--------------------------------------------------------------------------------
1 | /* global slideshow,window,document */
2 | window.xaringanExtraClipboard = function (selector, text) {
3 | if (!window.ClipboardJS.isSupported()) return
4 | if (!window.xaringanExtraClipboards) window.xaringanExtraClipboards = {}
5 |
6 | const ready = function (fn) {
7 | /* MIT License Copyright (c) 2016 Nuclei */
8 | /* https://github.com/nuclei/readyjs */
9 | const completed = () => {
10 | document.removeEventListener('DOMContentLoaded', completed)
11 | window.removeEventListener('load', completed)
12 | fn()
13 | }
14 | if (document.readyState !== 'loading') {
15 | setTimeout(fn)
16 | } else {
17 | document.addEventListener('DOMContentLoaded', completed)
18 | window.addEventListener('load', completed)
19 | }
20 | }
21 |
22 | ready(function () {
23 | const {
24 | button: buttonText = 'Copy Code',
25 | success: successText = 'Copied!',
26 | error: errorText = 'Press Ctrl+C to Copy'
27 | } = text
28 |
29 | const template = '`
31 |
32 | const isRemarkSlideshow = typeof slideshow !== 'undefined' &&
33 | Object.prototype.hasOwnProperty.call(slideshow, 'getSlides')
34 |
35 | let siblingSelector = selector || 'pre'
36 | if (!selector && isRemarkSlideshow) {
37 | siblingSelector = '.remark-slides-area ' + siblingSelector
38 | }
39 |
40 | // insert