Skip to content

Commit 6e07663

Browse files
committed
Initial commit
0 parents  commit 6e07663

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+5839
-0
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.Rproj.user
2+
.Rhistory
3+
.Rdata
4+
.httr-oauth
5+
.DS_Store
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"hash": "19e7c100fb837d5040e2c052b126fc45",
3+
"result": {
4+
"markdown": "---\ntitle: \"Come back soon\"\nauthor: \"Beatriz Milz\"\ndate: \"2022-06-04\"\ncategories: [news]\nimage: \"image.jpg\"\n---\n\n\nThis is a post with executable code.\n\n\n::: {.cell}\n\n```{.r .cell-code}\n1 + 1\n```\n\n::: {.cell-output .cell-output-stdout}\n```\n[1] 2\n```\n:::\n:::\n",
5+
"supporting": [],
6+
"filters": [
7+
"rmarkdown/pagebreak.lua"
8+
],
9+
"includes": {},
10+
"engineDependencies": {},
11+
"preserve": {},
12+
"postProcess": true
13+
}
14+
}

.quarto/_freeze/site_libs/clipboard/clipboard.min.js

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.quarto/_freeze/site_libs/quarto-listing/list.min.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,243 @@
1+
const kProgressiveAttr = "data-src";
2+
let categoriesLoaded = false;
3+
4+
window.quartoListingCategory = (category) => {
5+
if (categoriesLoaded) {
6+
activateCategory(category);
7+
setCategoryHash(category);
8+
}
9+
};
10+
11+
window["quarto-listing-loaded"] = () => {
12+
// Process any existing hash
13+
const hash = getHash();
14+
15+
if (hash) {
16+
// If there is a category, switch to that
17+
if (hash.category) {
18+
activateCategory(hash.category);
19+
}
20+
// Paginate a specific listing
21+
const listingIds = Object.keys(window["quarto-listings"]);
22+
for (const listingId of listingIds) {
23+
const page = hash[getListingPageKey(listingId)];
24+
if (page) {
25+
showPage(listingId, page);
26+
}
27+
}
28+
}
29+
30+
const listingIds = Object.keys(window["quarto-listings"]);
31+
for (const listingId of listingIds) {
32+
// The actual list
33+
const list = window["quarto-listings"][listingId];
34+
35+
// Update the handlers for pagination events
36+
refreshPaginationHandlers(listingId);
37+
38+
// Render any visible items that need it
39+
renderVisibleProgressiveImages(list);
40+
41+
// Whenever the list is updated, we also need to
42+
// attach handlers to the new pagination elements
43+
// and refresh any newly visible items.
44+
list.on("updated", function () {
45+
renderVisibleProgressiveImages(list);
46+
setTimeout(() => refreshPaginationHandlers(listingId));
47+
48+
// Show or hide the no matching message
49+
toggleNoMatchingMessage(list);
50+
});
51+
}
52+
};
53+
54+
window.document.addEventListener("DOMContentLoaded", function (_event) {
55+
// Attach click handlers to categories
56+
const categoryEls = window.document.querySelectorAll(
57+
".quarto-listing-category .category"
58+
);
59+
60+
for (const categoryEl of categoryEls) {
61+
const category = categoryEl.getAttribute("data-category");
62+
categoryEl.onclick = () => {
63+
activateCategory(category);
64+
setCategoryHash(category);
65+
};
66+
}
67+
68+
// Attach a click handler to the category title
69+
// (there should be only one, but since it is a class name, handle N)
70+
const categoryTitleEls = window.document.querySelectorAll(
71+
".quarto-listing-category-title"
72+
);
73+
for (const categoryTitleEl of categoryTitleEls) {
74+
categoryTitleEl.onclick = () => {
75+
activateCategory("");
76+
setCategoryHash("");
77+
};
78+
}
79+
80+
categoriesLoaded = true;
81+
});
82+
83+
function toggleNoMatchingMessage(list) {
84+
const selector = `#${list.listContainer.id} .listing-no-matching`;
85+
const noMatchingEl = window.document.querySelector(selector);
86+
if (noMatchingEl) {
87+
if (list.visibleItems.length === 0) {
88+
noMatchingEl.classList.remove("d-none");
89+
} else {
90+
if (!noMatchingEl.classList.contains("d-none")) {
91+
noMatchingEl.classList.add("d-none");
92+
}
93+
}
94+
}
95+
}
96+
97+
function setCategoryHash(category) {
98+
setHash({ category });
99+
}
100+
101+
function setPageHash(listingId, page) {
102+
const currentHash = getHash() || {};
103+
currentHash[getListingPageKey(listingId)] = page;
104+
setHash(currentHash);
105+
}
106+
107+
function getListingPageKey(listingId) {
108+
return `${listingId}-page`;
109+
}
110+
111+
function refreshPaginationHandlers(listingId) {
112+
const listingEl = window.document.getElementById(listingId);
113+
const paginationEls = listingEl.querySelectorAll(
114+
".pagination li.page-item:not(.disabled) .page.page-link"
115+
);
116+
for (const paginationEl of paginationEls) {
117+
paginationEl.onclick = (sender) => {
118+
setPageHash(listingId, sender.target.getAttribute("data-i"));
119+
showPage(listingId, sender.target.getAttribute("data-i"));
120+
return false;
121+
};
122+
}
123+
}
124+
125+
function renderVisibleProgressiveImages(list) {
126+
// Run through the visible items and render any progressive images
127+
for (const item of list.visibleItems) {
128+
const itemEl = item.elm;
129+
if (itemEl) {
130+
const progressiveImgs = itemEl.querySelectorAll(
131+
`img[${kProgressiveAttr}]`
132+
);
133+
for (const progressiveImg of progressiveImgs) {
134+
const srcValue = progressiveImg.getAttribute(kProgressiveAttr);
135+
if (srcValue) {
136+
progressiveImg.setAttribute("src", srcValue);
137+
}
138+
progressiveImg.removeAttribute(kProgressiveAttr);
139+
}
140+
}
141+
}
142+
}
143+
144+
function getHash() {
145+
// Hashes are of the form
146+
// #name:value|name1:value1|name2:value2
147+
const currentUrl = new URL(window.location);
148+
const hashRaw = currentUrl.hash ? currentUrl.hash.slice(1) : undefined;
149+
return parseHash(hashRaw);
150+
}
151+
152+
const kAnd = "&";
153+
const kEquals = "=";
154+
155+
function parseHash(hash) {
156+
if (!hash) {
157+
return undefined;
158+
}
159+
const hasValuesStrs = hash.split(kAnd);
160+
const hashValues = hasValuesStrs
161+
.map((hashValueStr) => {
162+
const vals = hashValueStr.split(kEquals);
163+
if (vals.length === 2) {
164+
return { name: vals[0], value: vals[1] };
165+
} else {
166+
return undefined;
167+
}
168+
})
169+
.filter((value) => {
170+
return value !== undefined;
171+
});
172+
173+
const hashObj = {};
174+
hashValues.forEach((hashValue) => {
175+
hashObj[hashValue.name] = decodeURIComponent(hashValue.value);
176+
});
177+
return hashObj;
178+
}
179+
180+
function makeHash(obj) {
181+
return Object.keys(obj)
182+
.map((key) => {
183+
return `${key}${kEquals}${obj[key]}`;
184+
})
185+
.join(kAnd);
186+
}
187+
188+
function setHash(obj) {
189+
const hash = makeHash(obj);
190+
window.history.pushState(null, null, `#${hash}`);
191+
}
192+
193+
function showPage(listingId, page) {
194+
const list = window["quarto-listings"][listingId];
195+
if (list) {
196+
list.show((page - 1) * list.page + 1, list.page);
197+
}
198+
}
199+
200+
function activateCategory(category) {
201+
// Deactivate existing categories
202+
const activeEls = window.document.querySelectorAll(
203+
".quarto-listing-category .category.active"
204+
);
205+
for (const activeEl of activeEls) {
206+
activeEl.classList.remove("active");
207+
}
208+
209+
// Activate this category
210+
const categoryEl = window.document.querySelector(
211+
`.quarto-listing-category .category[data-category='${category}'`
212+
);
213+
if (categoryEl) {
214+
categoryEl.classList.add("active");
215+
}
216+
217+
// Filter the listings to this category
218+
filterListingCategory(category);
219+
}
220+
221+
function filterListingCategory(category) {
222+
const listingIds = Object.keys(window["quarto-listings"]);
223+
for (const listingId of listingIds) {
224+
const list = window["quarto-listings"][listingId];
225+
if (list) {
226+
if (category === "") {
227+
// resets the filter
228+
list.filter();
229+
} else {
230+
// filter to this category
231+
list.filter(function (item) {
232+
const itemValues = item.values();
233+
if (itemValues.categories !== null) {
234+
const categories = itemValues.categories.split(",");
235+
return categories.includes(category);
236+
} else {
237+
return false;
238+
}
239+
});
240+
}
241+
}
242+
}
243+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"headings":[],"entries":[]}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"entries":[],"headings":[]}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"entries":[],"headings":[]}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"headings":[],"entries":[]}

.quarto/idx/about.qmd.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"title":"Beatriz Milz","markdown":{"yaml":{"title":"Beatriz Milz","image":"profile.jpeg","about":{"template":"trestles","links":[{"icon":"envelope","text":"Email","href":"mailto:[email protected]"},{"icon":"file-pdf","text":"Resume","href":"https://beatrizmilz.github.io/resume/index.pdf"},{"icon":"github","text":"Github","href":"https://github.com/beatrizmilz"},{"icon":"twitter","text":"Twitter","href":"https://twitter.com/BeaMilz"}]}},"containsRefs":false,"markdown":"\n\n::: {#hero-heading}\nHi!\nMy name is Beatriz, and I am a R-Lady from Brazil 🇧🇷 💜.\n\nI'm a [tidyverse instructor certified by RStudio](https://education.rstudio.com/trainers/people/milz+beatriz/), and I teach R at [Curso-R](https://curso-r.com/).\n\nI have been writing about R in my [blog in Portuguese](https://beatrizmilz.com/blog/) since 2019.\nI'm mostly active in the Brazilian R community, co-organizing communities and events, such as: [R-Ladies São Paulo](https://twitter.com/RLadiesSaoPaulo), [Latin-R](https://twitter.com/LatinR_Conf), and [satRday São Paulo](https://twitter.com/satRdaySP).\n\nI'm a PhD Candidate at the [University of São Paulo](http://www.iee.usp.br/).\n:::\n"},"formats":{"html":{"execute":{"fig-width":7,"fig-height":5,"fig-format":"retina","fig-dpi":96,"error":false,"eval":true,"cache":null,"freeze":false,"echo":true,"output":true,"warning":true,"include":true,"keep-md":false,"keep-ipynb":false,"ipynb":null,"enabled":null,"daemon":null,"daemon-restart":false,"debug":false,"ipynb-filters":[],"engine":"markdown"},"render":{"keep-tex":false,"keep-yaml":false,"keep-source":false,"keep-hidden":false,"prefer-html":false,"output-divs":true,"output-ext":"html","fig-align":"default","fig-pos":null,"fig-env":null,"code-fold":"none","code-overflow":"scroll","code-link":false,"code-line-numbers":false,"code-tools":false,"tbl-colwidths":"auto","merge-includes":true,"latex-auto-mk":true,"latex-auto-install":true,"latex-clean":true,"latex-max-runs":10,"latex-makeindex":"makeindex","latex-makeindex-opts":[],"latex-tlmgr-opts":[],"latex-input-paths":[],"latex-output-dir":null,"link-external-icon":false,"link-external-newwindow":false,"self-contained-math":false},"pandoc":{"standalone":true,"wrap":"none","default-image-extension":"png","to":"html","css":["styles.css"],"output-file":"about.html"},"language":{},"metadata":{"lang":"en","fig-responsive":true,"quarto-version":"0.9.515","editor":"visual","theme":"journal","title":"Beatriz Milz","image":"profile.jpeg","about":{"template":"trestles","links":[{"icon":"envelope","text":"Email","href":"mailto:[email protected]"},{"icon":"file-pdf","text":"Resume","href":"https://beatrizmilz.github.io/resume/index.pdf"},{"icon":"github","text":"Github","href":"https://github.com/beatrizmilz"},{"icon":"twitter","text":"Twitter","href":"https://twitter.com/BeaMilz"}]}},"extensions":{"book":{"multiFile":true}}}}}

0 commit comments

Comments
 (0)