Skip to content

Instantly share code, notes, and snippets.

View girlandhercode's full-sized avatar
🎯
Focusing

Nicole girlandhercode

🎯
Focusing
View GitHub Profile
@DudeThatsErin
DudeThatsErin / BannerOnCreation.js
Last active May 7, 2025 13:15
Choose a random banner upon file creation
const fs = require('fs').promises;
const path = require('path');
async function getRandomImageFromFolder(folderPath) {
try {
const files = await fs.readdir(folderPath);
const imageFiles = files.filter(file => {
const ext = path.extname(file).toLowerCase();
return ext === '.jpg' || ext === '.jpeg' || ext === '.png' || ext === '.gif';
});
@psychomelet
psychomelet / obsidian-web-clipper.js
Last active March 27, 2024 02:56 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([
import('https://unpkg.com/turndown?module'),
import('https://unpkg.com/joplin-turndown-plugin-gfm?module'),
import('https://unpkg.com/@tehshrike/readability?module'),
]).then(async ([{
default: Turndown
}, TurndownPluginGfm, {
default: Readability
}]) => {
// Use destructuring to extract gfm (and any other plugins you need) directly from turndownPluginGfm
@roman-balzer
roman-balzer / VSCode Cheatsheet - Shared.md
Created February 25, 2024 02:11
Obsidian - Cheatsheet Example with summarized CSS
parent
[[Unspecified]]

[!attention] This cheatsheet is supposed to be used with a dedicated css file (summary.cheatsheet.css). Also keep in mind that Shortcuts marked with 🔹are not the default shortcuts, but those I changed them to for my personal use. The mark behind 🔹shows the default keybindings. Please look up default shortcuts if needed. The cheatsheet is optimize for use with Minimal theme. If interested, I also have cheatsheets for Obsidian, Discord, Vimium, Spotify and Windows Legend: 🔹Non-default keybinding changed by me 🔸Keybind of a plugin

@jordanwiseman
jordanwiseman / obsidian-web-clipper.js
Last active September 2, 2024 08:13 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
<%*
const editor = app.workspace.activeLeaf.view.editor;
if(editor.somethingSelected() === true) {
let selectedText = editor.getSelection();
let splitLines = selectedText.split('\n');
let finalOutput = '';
let listItem = false;
let codeBlock = false;
splitLines.forEach(eachLine => {
@ScottKillen
ScottKillen / print.css
Last active February 20, 2025 18:59
PDF export stylesheet for obsidian
/* Obsidian snippet to style output of pdf exports
*/
@media print {
/* set your preferred fonts here.
*/
:root {
--body-font-family: "Newsreader Text", TimesNewRoman, "Times New Roman", Times, Baskerville, Georgia, serif;
@pmbauer
pmbauer / mono_edit.css
Last active February 11, 2022 16:10
fixed-width fonts and ligature preservation in edit mode
:root {
--font-monospace: "MonoLisa", "JetBrains Mono", "Consolas", monospace !important;
--font-family-preview-edit-code: "MonoLisa", "JetBrains Mono", "Consolas", monospace !important;
--text-family-inline-code: "MonoLisa", "JetBrains Mono", "Consolas", monospace !important;
--rb-indent-font-family: "MonoLisa", "JetBrains Mono", "Consolas", monospace !important;
}
/**
* Use fixed-width font for edit mode
*/
@jglev
jglev / Example Output.md
Last active October 24, 2024 12:50
Use Obsidian Notes' Templater Plugin (https://github.com/SilentVoid13/Templater) to add links to GitHub Issues from specific public or private repositories using a searchable prompt

Screenshot of suggester prompt

Resulting output:

[`octocat/Hello-World #1053`](https://github.com/octocat/Hello-World/issues/1053)
@grazor
grazor / README.md
Last active March 8, 2023 07:17
Obsidian Templater insert Jira issue to the note

Insert jira issue into obsidian document

This is an Templater userscript to store jira ticket data as Obsidian note. Discussion is here.

This template requires go-jira tool to be installed and configured and provides three ways to load jira issues:

  • Inserting ticket contents for prompted issue id
  • Inserting ticket contents extracting issue id from note title
  • Inserting current active sprint overview note and populating its tasks as separate documents

Configuration (Linux, Mac)

@GitMurf
GitMurf / obsidian.templater.quick-capture.js
Last active September 12, 2024 10:28
Obsidian Quick Capture using templater. Activate from anywhere in your vault to record quick ideas, notes, time logging, etc. The Quick Capture file does NOT need to be open.
<%*
//v1.4: Adding option for including a header for each DNP day to fold
//'first' will add to top of file. 'last' will add to bottom of file
let firstOrLastLine = 'first';
//Name of the Quick Capture file. Do NOT include extension '.md'
let qcFileName = 'Quick Capture';
//Leave this blank if you want to use the default file path location (set to '/' to use root of vault)