Plugin | Description |
---|---|
editor-width-slider | Adjust how wide the editor view is |
table-editor-obsidian | Edit tables! |
obsidian-editor-shortcuts | Sublime-esque shortcuts, sometimes broke tho. |
obsidian-sortable | Sort things? I don’t quite remember |
obsidian-linter | MUST-HAVE. Lint plain text is so so nice. Saves a ton of time formatting extra line breaks. |
obsidian-style-settings | Extra themeing |
obsidian-git | Backup the vault using Git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct DebugPosition: ViewModifier { | |
var position: CGPoint | |
func body(content: Content) -> some View { | |
content | |
.overlay(alignment: .bottom) { | |
ZStack { | |
Text("(\(Int(position.x)), \(Int(position.y)))") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Zola | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
# Allows a manual run from the Actions tab | |
workflow_dispatch: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct OptionalComparator<T: Comparable>: SortComparator { | |
typealias Compared = T? | |
var order: SortOrder = .forward | |
func compare(_ lhs: T?, _ rhs: T?) -> ComparisonResult { | |
return switch (lhs, rhs) { | |
case (_, nil): | |
order == .forward ? .orderedDescending : .orderedAscending | |
default: | |
order == .forward ? .orderedAscending : .orderedDescending |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# theme = "gruvbox_dark_hard" | |
# theme = "monokai_pro_octagon" | |
theme = "ayu_mirage" | |
[editor] | |
auto-completion = true | |
color-modes = true | |
bufferline = "always" | |
scroll-lines = 1 | |
scrolloff = 15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/fish | |
# Sets the created date of each directory | |
# to the date of its *oldest* contained file. | |
# rewritten from: https://stackoverflow.com/a/40173154/1431900 | |
# | |
# ``` | |
# dir_before/ | |
# wow_song/ @ 1/3/20 <-----------| :^( | |
# wow_song v1.wav @ 1/1/20 <-| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias cl "osascript -e 'tell application \"System Events\" to keystroke \"k\" using command down'" | |
alias cls "clear && exa" | |
alias ls "exa" | |
alias lsl "ls -l" | |
alias lsa "ls -a" | |
alias lsal "ls -al" | |
alias c "clear" | |
alias rf "source ~/.config/fish/config.fish" | |
alias sub "subl" # am lazy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --author="author" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{sectsty} | |
\subsectionfont{\normalfont\fontsize{12}{10}\selectfont} | |
\usepackage{fancyhdr} | |
\pagestyle{myheadings} | |
\title{My Name \\ Assignment Title} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
todo: write +^n in Swift | |
var i = 0 | |
i++ // 1 | |
i = 0 | |
i++++ // 4 | |
i = 0 | |
i++++++++++++ // 12 | |
var i = 0 |
NewerOlder