Skip to content

Instantly share code, notes, and snippets.

View Segmentational's full-sized avatar

Jacob B. Sanders Segmentational

  • Colorado, United States
  • 03:33 (UTC -12:00)
View GitHub Profile
@Segmentational
Segmentational / XPC-Example.swift
Created March 12, 2026 18:44
XPC Session Example
import OSLog
import XPC
/// Executes an asynchronous end-to-end XPC round‑trip against the bundled XPC service
/// to validate connectivity, code‑signing requirements, request/response encoding,
/// and basic message handling.
///
/// The function:
/// - Creates an `XPCSession` targeting the XPC service with bundle identifier
/// `io.polyium.dx.XPT`.
@Segmentational
Segmentational / Directories.Bash
Created February 23, 2026 19:36
Bash Directories
#!/usr/bin/env bash
# -*- Coding: UTF-8 -*- #
# -*- System: Linux -*- #
# -*- Usage: *.* -*- #
#
# Shellcheck Ignore List
#
# shellcheck disable=SC1073
@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
#