Skip to content

Instantly share code, notes, and snippets.

View jhilker98's full-sized avatar
🔎
Currently looking for work.

Jacob Hilker jhilker98

🔎
Currently looking for work.
View GitHub Profile
<%*
const app = this.app;
const dv = app.plugins.plugins["dataview"].api;
// general metadata
const dob = await tp.user.chooseDate(tp, "Date of Birth");
const characterGender = await tp.system.suggester(["Male", "Female", "Non-binary"], ["Male", "Female", "Non-binary"], false, "Character's gender")
const characterOrientation = await tp.system.suggester(["Straight", "Gay", "Bi", "Unknown"], ["Heterosexual", "Homosexual", "Bisexual", "N/A"], false, "Character's sexual orientation")
const characterRole = await tp.system.suggester(["Main Character", "Major Character (Non-POV)", "Side Character", "Extra Character", "Antagonist"], ["_Main", "_Major", "_Side", "_Extra", "_Antagonist"], false, "Character's role in story")
// process if character is dead
let isDead = await tp.system.suggester(["True", "False"], [true, false], false, "Is the character dead?");
//<%*
const app = this.app;
const dv = app.plugins.plugins["dataview"].api;
// general metadata
const dob = await tp.user.chooseDate(tp, "Date of Birth");
const characterGender = await tp.system.suggester(["Male", "Female", "Non-binary"], ["Male", "Female", "Non-binary"], false, "Character's gender")
const characterOrientation = await tp.system.suggester(["Straight", "Gay", "Bi", "Unknown"], ["Heterosexual", "Homosexual", "Bisexual", "N/A"], false, "Character's sexual orientation")
const characterRole = await tp.system.suggester(["Main Character", "Major Character (Non-POV)", "Side Character", "Extra Character", "Antagonist"], ["_Main", "_Major", "_Side", "_Extra", "_Antagonist"], false, "Character's role in story")
// process if character is dead
let isDead = await tp.system.suggester(["True", "False"], [true, false], false, "Is the character dead?");
---
<%* let isDead = await tp.system.suggester(["True", "False"], [true, false], false, "Is the character dead?"); %>
<%* tR = `dead: ${isDead}` %>
<%* if (isDead) { %>
<%* tR += `dod: ${await tp.user.chooseDate(tp, 'Date of Death')}\n` %>
<%* } %>
---
@jhilker98
jhilker98 / flake.nix
Last active April 23, 2024 09:27
iosevka custom build plans on nix
{
description = "Custom builds of Iosevka";
inputs = {
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/x86_64-linux";
flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
{config, pkgs, lib, ...}:
{
imports = [
./plugins/which-key.nix
./plugins/nix-colors.nix
];
programs.neovim = {
vimAlias = true;
viAlias = true;

Installation

$ sudo -E env "PATH=$PATH" npx playwright install-deps

Installing dependencies...
Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Get:2 https://dl.google.com/linux/chrome/deb stable InRelease [1825 B]
Hit:3 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
@jhilker98
jhilker98 / [slug].astro
Created July 11, 2023 19:39
broken blog layout setup
---
import { getCollection, CollectionEntry } from "astro:content";
import Layout from "../../layouts/Layout.astro";
export async function getStaticPaths() {
const posts = await getCollection('blog');
return posts.map((post) => {
const year = post.data.date.getFullYear();
post.slug = `/${year}/${post.slug}`;
@jhilker98
jhilker98 / infobox.html
Created October 5, 2022 20:02
example infoboxes in tailwind css
<aside class="infobox">
<header class="w-full text-lg text-center font-bold p-1 bg-blue-500 text-white">Infobox Title</header>
<figure class="!my-0">
<img src="https://images.unsplash.com/photo-1632951634308-d7889939c125" alt="" class="object-cover h-60" />
<figcaption class="text-center md:!my-auto text-gray-600">Some woods and a river.</figcaption>
</figure>
<table class="w-full">
<tr>
<td class="first:!pl-2 first:font-bold">Born</td>
<td class="!pr-0 !py-0">02 Jan. 1106</td>
@jhilker98
jhilker98 / buildIosevka.sh
Last active July 19, 2022 16:38
Josevka Build Plans, ELIFECYCLE error
#!/usr/bin/env bash
dos2unix $HOME/josevka/* &>/dev/null
IOSEVKA_VER="$(awk 'NR==1{print $2}' $HOME/josevka/build.org)"
FAMILY="$(rg '\[buildPlans.(josevka[a-z-]{0,})\]' $HOME/josevka/build.org | sed 's/]//g' | cut -d'.' -f2 | fzf | xargs)"
docker run -e "FONT_VERSION=$IOSEVKA_VER" -it -v "$HOME/josevka":/build avivace/iosevka-build ttf::$FAMILY
#case $FAMILY in
# "josevka")
# docker run -v $HOME/josevka/dist/josevka/ttf:/in -v $HOME/josevka/patched/josevka:/out nerdfonts/patcher -c -l -q --careful --no-progressbars;;
#
@jhilker98
jhilker98 / install.sh
Last active July 6, 2022 01:50
endeavourOS install scripts
echo "Installing global packages now..."
sudo pacman -Syu python-setuptools python-pip dunst zsh geoclue rofimoji rofi-pass rofi-calc emacs
yay -S qtile-extras-git
echo "Changing shell to zsh"
chsh -s /bin/zsh
printf "Installing Nix and Home Manager\n"
sh <(curl -L https://nixos.org/nix/install) --daemon
echo 'export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH}' >> ~/.profile && source ~/.profile
if [[ ! -d "$HOME/.config/doom" ]]; then