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
[custom.bartib] | |
command = "tail -n1 $BARTIB_FILE | awk '{print \"\" $4 \" \" $2 \"\"}'" | |
when = 'bartib current | grep -v "No Activity is currently running"' | |
style = 'dimmed blue' | |
shell = ["sh", "-c"] | |
use_stdin = false |
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
#! /usr/bin/env nix-shell | |
#! nix-shell --packages bartib gum bash toybox gawk -i bash | |
# Make sure all dependencies are present | |
# toybox contains tac, head, tail | |
# Get current status of bartib | |
CURRENT_PROJ=$(bartib current) | |
# Put selection in function to ensure shorter lines | |
select_task() |
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
type PartialNull<T> = { [P in keyof T]: T[P] | null } | |
type PartialBoolean<T> = { [P in keyof T]: T[P] | boolean } |
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
{ | |
description = "llama.cpp running vicuna"; | |
inputs = { | |
llama.url = "github:ggerganov/llama.cpp/aaf3b23debc1fe1a06733c8c6468fb84233cc44f"; | |
flake-utils.url = "github:numtide/flake-utils/033b9f258ca96a10e543d4442071f614dc3f8412"; | |
nixpkgs.url = "github:NixOS/nixpkgs/d9f759f2ea8d265d974a6e1259bd510ac5844c5d"; | |
}; | |
outputs = { self, flake-utils, llama, nixpkgs }: |
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
int sum_unger(int startwert) { | |
int sum = 0; | |
if (startwert < 1) { | |
return -1; | |
} | |
startwert += (startwert % 2) - 1; | |
while (startwert >= 1) { |
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/bash | |
while getopts r: option | |
do | |
case "${option}" | |
in | |
r) REPOSITORY=${OPTARG};; | |
esac | |
done |