Skip to content

Instantly share code, notes, and snippets.

@zsviczian
zsviczian / BulkExport.js
Last active July 25, 2026 20:58
Build a Searchable Icon Library in Obsidian With Bases
ea = ExcalidrawAutomate;
async function run() {
const files = app.vault.getMarkdownFiles().filter(f=>ea.isExcalidrawFile(f) && f.name.match(/^(?:icon|stickfigure|logo) - /i));
let workingLeaf = app.workspace.getLeaf(true);
//let i = 0; //uncomment this and if statment later for limited debugging.
for (excalidrawFile of files) {
//if(i++>5) continue;
await workingLeaf.openFile(excalidrawFile);
await sleep(200);
@zsviczian
zsviczian / DNP.md
Last active July 25, 2026 20:58
Excalidraw Scripting - Daily Quote Illustrations in Obsidian with Templater, Excalidraw and OpenAI

<%* const ea = ExcalidrawAutomate; const imageSize = 1024x1024; const instruction = "Return a single message with the generated image prompt in a codeblock"; const systemPrompt = "Your task involves transforming a user-provided quote into a detailed and imaginative illustration. Craft a visual representation that captures the essence of the quote and resonates well with a broad audience. Additionally, provide preferences for styling, such as the chosen medium and artistic direction, to guide the image creation process. Ensure the resulting image remains text-free. Your task output should comprise a descriptive and detailed narrative aimed at facilitating the creation of a captivating illustration from the quote.";

//--------------------------------------- //Get Quote from stoic quotes //--------------------------------------- const quoteString = await request({url: "https://stoic-quotes.com/api/quote"});

@zsviczian
zsviczian / publish.css
Last active July 25, 2026 20:58
Excalidraw Obsidian Publish Support
@font-face {font-family: "Virgil";src: url("https://excalidraw.com/Virgil.woff2");}
@font-face {font-family: "Cascadia";src: url("https://excalidraw.com/Cascadia.woff2");}
@font-face {font-family: "Assistant";src: url("https://excalidraw.com/Assistant-Regular.woff2");}
div.markdown-embed-title {
display: none;
}
div.markdown-embed {
border: none;
@zsviczian
zsviczian / Readme
Created November 9, 2023 21:40
ExcalidrawAutomate onFileOpenHook
https://youtu.be/OX5_UYjXEvc
![Thumbnail - 20231109 Excalidraw on-load script (Custom)](https://github.com/zsviczian/obsidian-excalidraw-plugin/assets/14358394/8d741faf-9ce6-4d83-bb7a-fdc887a30918)
@zsviczian
zsviczian / Excalidraw Dynamic Styling.md
Last active July 25, 2026 20:57
Excalidraw Dynamic Styling
@zsviczian
zsviczian / Icon Library Script.md
Last active July 25, 2026 20:56
Excalidraw Icon Library

/*

const FILENAME_FILTER = /^icon -/i;
const KEYWORD_GRABBER = /(?:icon -)?([^-]*)-?/i;
const COLS = 30;
const LOCK_ICONS = true;
const HEIGHT = 180;
const WIDTH = 180;
const TEXTHEIGHT = 40;
const PADDING = 50;
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active July 25, 2026 20:55
A badass list of frontend development resources I collected over time.
@jareware
jareware / SCSS.md
Last active July 25, 2026 20:55
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@0xdevalias
0xdevalias / _deobfuscating-unminifying-obfuscated-web-app-code.md
Last active July 25, 2026 20:54
Some notes and tools for reverse engineering / deobfuscating / unminifying obfuscated web app code
@zsviczian
zsviczian / Process - Build Book.md
Last active July 25, 2026 20:51
Publishing Workflow: Obsidian, Pandoc, Calibre: EPUB, PDF, TXT

<%* /*

/**
 * Obsidian Templater script to build a book from markdown files.
 * 
 * This script automates the process of generating a publish-ready book from a set of Obsidian markdown files.
 * It is designed to work on both Windows and Mac, and can be run from within Obsidian using the Templater plugin.
 * 
 * The script performs the following steps:
 *   1. Expands all Obsidian embeds and links, recursively flattening the book structure into two markdown files: