Compare commits

..

No commits in common. "7699de1ec90c930a8e080db84b346b1837ae4a23" and "e27931e6265df722a7be320229b8621668da418f" have entirely different histories.

4 changed files with 0 additions and 64 deletions

View File

@ -10,43 +10,6 @@ fi
alias _slides="$(which slides 2> /dev/null || echo "echo 'slides not installed'")"
function roll {
local count=1
if [[ "$2" != "" ]]; then
count="$2"
fi
local rolls="$(shuf -i 1-$1 -n $count)"
echo "$rolls" | toilet
for i in {1..$count}; do
setsid cvlc --play-and-exit $HOME/Videos/roll.mp3 &> /dev/null
sleep "0.0$(shuf -i 5-9 -n 1)"
done
if [[ "$count" != "1" ]]; then
echo "Total: $(echo "$rolls" | paste -s -d+ - | bc)" | toilet
fi
}
alias d4='roll 4'
alias 4='roll 4'
alias d6='roll 6'
alias 6='roll 6'
alias d8='roll 8'
alias 8='roll 8'
alias d10='roll 10'
alias 10='roll 10'
alias d12='roll 12'
alias 12='roll 12'
alias d20='roll 20'
alias 20='roll 20'
alias dedup="awk '!seen_lines[$0]++'"
alias dedup-keep-last="tac | awk '!seen_lines[$0]++' | tac"
function helpdef {
if [[ "$1" == "--help" ]] || [[ "$1" == "-h" ]]; then
echo "$2"

View File

@ -39,7 +39,6 @@ int main(int argc, char* argv[])
);
person->greet();
// Not necessary with unique_ptr:
// delete person;

View File

@ -3,22 +3,3 @@
document.addEventListener('DOMContentLoaded', function initJs () {
console.log('Hello, world!')
})
// skeleton-script.js
#!/usr/bin/env bun
// See: https://bun.sh/docs/runtime/shell
import { $ } from "bun";
const lines = $`ls`.lines()
for await (let line of lines) {
console.log(line);
}
const lineArray = await Array.fromAsync(lines)
console.log(lineArray.filter(s => s.startsWith("D")))

View File

@ -290,10 +290,3 @@ function load_nvm {
test -f /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh && source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
test -f "$HOME/.asdf/asdf.sh" && . "$HOME/.asdf/asdf.sh"
test -f ~/.cargo/env && source ~/.cargo/env
# bun completions
[ -s "/home/sage/.bun/_bun" ] && source "/home/sage/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"