Skip to content

Instantly share code, notes, and snippets.

View roman-balzer's full-sized avatar

Roman Balzer roman-balzer

View GitHub Profile
@roman-balzer
roman-balzer / g.supercharged-links.scss
Created October 15, 2024 23:08
SelfStyle Supercharged link (with Sass)
@roman-balzer
roman-balzer / PrimeTableRowTypeGuardDirective.ts
Created August 1, 2024 20:10
PrimeNG Table - Typing for Templates
/* Credit goes to Alain Boudard, only thanks to his article I understood how that works
* Link: https://coco-boudard.medium.com/typing-angular-primeng-table-templates-columns-e7859df76f9b
*/
import { Directive, input } from '@angular/core'
import { TableTemplates } from 'primeng/table'
type PTableTemplate<T extends keyof TableTemplates> = Parameters<TableTemplates[T]>[0]
type TableRowTemplateContext<TItem extends object, TName extends keyof TableTemplates> = {
$implicit: TItem
@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