Skip to content

Instantly share code, notes, and snippets.

View Segmentational's full-sized avatar

Jacob B. Sanders Segmentational

View GitHub Profile
@Segmentational
Segmentational / Example-Observations-Usage.swift
Created October 8, 2025 01:38
Example-Observations-Usage.swift
import Combine
import OSLog
import Persistables
import SwiftData
import SwiftUI
extension Tags {
public enum Views {}
}
@Segmentational
Segmentational / Swift-Prose-Expression-Predicate.swift
Created September 28, 2025 22:41
Swift-Prose-Expression-Predicate.swift
//
// Prose.swift
// Swift-Predicates
//
// Created by Segmentational on 9/28/25.
//
import Foundation
/// A predicate-based expression.
@Segmentational
Segmentational / .gitmessage
Last active June 29, 2025 16:40
.gitmessage
type(scope): description
# <Type>(<Optional-Scope>): <Description>
#
# Body - Present Tense (e.g. "change", not "changed" || "changes")
#
# Footer - Issue Reference, Breaking Change, Additional Contributors, Commit SHA(s)
# Type Reference
#
@Segmentational
Segmentational / .gitignore
Created June 29, 2025 10:22
Personal-Swift-Ignore
### Customizations
.idea
### Languages - https://github.com/github/gitignore
## Swift
# Xcode
#
@Segmentational
Segmentational / Bash-Template-Example.bash
Last active June 29, 2025 10:16
Bash-Template-Example.bash
#!/usr/bin/env bash
# -*- Coding: UTF-8 -*- #
# -*- System: Linux -*- #
# -*- Usage: *.* -*- #
#
# General Bash Template
#
@Segmentational
Segmentational / Bash-Example.Bash
Last active June 29, 2025 09:34
Bash-Example.Bash
#!/usr/bin/env bash
# -*- Coding: UTF-8 -*- #
# -*- System: Linux -*- #
# -*- Usage: *.* -*- #
#
# Advanced Bash Example
#
# Script makes use of the following concepts:
@Segmentational
Segmentational / Dynamic-Python-Virtual-Environment.py
Last active June 19, 2025 23:51
Dynamic-Python-Virtual-Environment.py
#!/usr/bin/env python
import argparse
import glob
import json
import logging
import os
import pathlib
import shlex
import shutil
@Segmentational
Segmentational / python.mk
Last active June 4, 2025 00:21
Makefile (Python)
# ====================================================================================
# Project Specific Globals
# ------------------------------------------------------------------------------------
#
# - It's assumed the $(name) is the same literal as the compiled binary or executable.
# - Override the defaults if not available in a pipeline's environment variables.
#
# - Default GitHub environment variables: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables
#
@Segmentational
Segmentational / .pre-commit-config.yaml
Last active June 4, 2025 00:18
Pre-Commit-Template
---
repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v4.6.0"
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: check-json
@Segmentational
Segmentational / unset-aws-environment-variables.bash
Created May 19, 2025 16:10
Unset AWS Environment Variables
function unset-aws-environment-variables() {
unset AWS_ACCESS_KEY_ID
unset AWS_SECRET_ACCESS_KEY
unset AWS_SESSION_TOKEN
unset AWS_PROFILE
unset AWS_DEFAULT_PROFILE
}