Skip to content

Instantly share code, notes, and snippets.

View ToastShaman's full-sized avatar

Kevin Denver ToastShaman

View GitHub Profile
@ToastShaman
ToastShaman / install.sh
Last active September 12, 2022 19:25
Mac provisioning with Brew
#!/bin/bash
set -euxo pipefail
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install --cask alacritty
brew install --cask iterm2
brew install --cask visual-studio-code
brew install --cask cyberduck
@ToastShaman
ToastShaman / BookBuddy.py
Last active January 1, 2023 12:10
BookBuddy: My Library Manager to Markdown
#!/usr/bin/env python3
# pip3 install pathvalidate
# pip3 install pillow
# brew install libffi libheif
# pip3 install pyheif
import sqlite3
import base64
import io
@ToastShaman
ToastShaman / SpringJdbcAction.java
Last active December 9, 2023 21:18
Spring JDBC Monad
package com.example.demo.fp;
import io.vavr.control.Try;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
import org.springframework.transaction.support.TransactionTemplate;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.*;
package com.github.toastshaman.json.reader;
import io.vavr.Function0;
import io.vavr.Function1;
import io.vavr.Function2;
import io.vavr.Function3;
import io.vavr.Function4;
import org.json.JSONObject;
import java.util.Arrays;