Skip to content

Instantly share code, notes, and snippets.

View serpro69's full-sized avatar
🍡
breaking things when they work, so I can fix them later

Særgeir serpro69

🍡
breaking things when they work, so I can fix them later
View GitHub Profile
@OXY2DEV
OXY2DEV / CMD.md
Last active February 5, 2025 12:29

πŸ”° A beginners guide to create custom cmdline

showcase

Ever wanted to know how noice creates the cmdline or wanted your own one?

No one? Guess it's just me πŸ₯².

Anyway, this post is a simple tutorial for creating a basic cmdline in neovim.

@scottTomaszewski
scottTomaszewski / filtering_dv.js
Created October 2, 2023 01:27
This DataviewJS View helps to add filtering functionality to a Dataview Table in Obsidian.
/*
This DataviewJS View helps to add functionality to a Dataview Table.
THIS IS A BETA RELEASE - there are bugs and its not feature-complete
Version: v0.6.0
Given a Dataview Query, this view will
- Execute the query
- Extract the headers/columns of the result
- Render filters to adjust the Dataview table results
- Render the table results, filtering and re-rendering on filter changes
@serpro69
serpro69 / dataview-query.js
Created December 31, 2022 10:24
Obsidian Dataview - display text from header section
let pages = dv.pages('#daylog');
// Loop through pages
for (let p of pages) {
let noteText = await dv.io.load(p.file.path);
// define headers to look for
const headers = ["🧭 Personal", "πŸ’» Work"];
headers.map((header) => {
@raisabelatrix
raisabelatrix / rainbow-tags.css
Last active March 4, 2025 09:54
Obsidian 1.0+ snippet for rainbow-colored tags. Comes with style settings option
/* β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” β•—
                 STYLE SETTINGS
β•š β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” */
/* @settings
name: Rainbow Tags by raisabelatrix
id: rb-tags-rsbltrx
settings:
-
id: rainbow-tags
@AnubisNekhet
AnubisNekhet / !Description.md
Last active October 13, 2024 00:19
Capacities-like index card callout

This Snippet has been moved

Please use this snippet instead.

2022

Daily Journaling

const dayInMonth = moment().format("D");
const currentMonth = moment().format("M");
var i = 1;
while (currentMonth > i) {
    var entries = entriesSum(i);
    var max = daysInMonth(i);
    var perc = entries + "/" + max;
@raisabelatrix
raisabelatrix / obsidian-card-view.css
Last active January 10, 2025 22:22
View Obsidian notes as cards. Add the cssclass card-view to the note's frontmatter to enable card view on reading mode. [Not tested on Obsidian 1.0+]
.card-view {
--card-width:35em; /*adjust this size if you want narrower or wider cards*/
/*unit has to be in em so that card background will scale along with your font
when you zoom in and out*/
}
/*The Card*/
.card-view .markdown-preview-section {
background-color: var(--background-primary);
margin: 3% auto;
@Signynt
Signynt / Example Lecture Note.md
Last active April 23, 2022 10:55
Notes for Hub with Dataview queries
title allDay startTime endTime date
Pathologie Vorlesung
false
29700
35100
2022-04-05

[!info]+

  • type:: Vorlesung
@Signynt
Signynt / primary-cards.css
Last active December 26, 2024 00:59
Minimal Cards snippet with tweaks for Primary theme
/* Cards snippet for Obsidian
author: @kepano
Support my work:
https://github.com/sponsors/kepano
modified by @signynt for the Primary theme */
:root {
--cards-min-width:180px;
--cards-max-width:1fr;
--cards-mobile-width:120px;
@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;