Skip to content

Instantly share code, notes, and snippets.

@anpigon
anpigon / obsidian_quickAdd_macro_search_books_aladin.js
Last active June 16, 2024 17:57
옵시디언 quickAdd 플러그인: 알라딘 도서 검색 매크로
const notice = (msg) => new Notice(msg, 5000);
const parseDOMFormString = (html) => {
return new DOMParser().parseFromString(html, "text/html");
};
const requestHtmlDoc = async (url) => {
const response = await request({ url });
return parseDOMFormString(response);
};
@Phlow
Phlow / for-loop-sorted-collection
Last active April 30, 2024 13:30
This Liquid loop for Jekyll sorts a collection by date in reverse order
{% comment %}
*
* This loop loops through a collection called `collection_name`
* and sorts it by the front matter variable `date` and than filters
* the collection with `reverse` in reverse order
*
* To make it work you first have to assign the data to a new string
* called `sorted`.
*
{% endcomment %}