Skip to content

Instantly share code, notes, and snippets.

@jazzychad
jazzychad / 000_metadata.json
Created December 14, 2023 09:12
Caddy logs
{
"title": "Caddy logs",
"timestamp": "2023-12-14T09:12:55.117Z",
"visibility": "public",
"parts": [
{
"id": "KJFy50_50p-zTAr7DOGUQ.md",
"timestamp": "2023-12-14T09:12:55.117Z",
"type": "post",
"subtype": "markdown"
{
"title": "First Note!",
"timestamp": "2023-08-29T23:16:15.790Z",
"visibility": "public",
"parts": [
{
"id": "VUTBxiybsA9BFVolSXqPB.md",
"timestamp": "2023-08-29T23:16:15.790Z",
"type": "post",
"subtype": "markdown"
@jazzychad
jazzychad / 000_index.json
Last active March 28, 2024 20:12
Notes gistblog index
{
"title": "JazzyChad's Notes",
"posts": [
{
"id": "4f2fb823ce01bccfe677c025f638eef4",
"title": "RevenueCat Onboarding Feedback",
"timestamp": "2024-03-28T20:12:37.088Z",
"visibility": "unlisted"
},
{
@jazzychad
jazzychad / git-completion.zsh
Created March 24, 2022 21:59
git completion for zsh
#compdef git gitk
# zsh completion wrapper for git
#
# Copyright (c) 2012-2013 Felipe Contreras <felipe.contreras@gmail.com>
#
# You need git's bash completion script installed somewhere, by default it
# would be the location bash-completion uses.
#
# If your script is somewhere else, you can configure it on your ~/.zshrc:
@jazzychad
jazzychad / git-prompt.sh
Created March 24, 2022 21:58
git prompt shell script
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
@jazzychad
jazzychad / CKErrorFriendlyStrings.swift
Created January 26, 2022 00:47
Friendly strings for CKError.Code values
import CloudKit
extension CKError {
func stringForErrorCode() -> String {
let code = self.code
switch code {
case .internalError:
return "Internal error"
case .partialFailure:
@jazzychad
jazzychad / 000_metadata.json
Last active October 20, 2021 20:29
Papercraft Cube Pumpkin Jack-o-Lantern
{
"title": "Papercraft Cube Pumpkin Jack-o-Lantern",
"timestamp": "2021-10-20T20:28:06.006Z",
"visibility": "public",
"parts": [
{
"id": "GC5_dW5UOqVmB8jsJ5O2b.md",
"timestamp": "2021-10-20T20:28:06.006Z",
"type": "post",
"subtype": "markdown"
@jazzychad
jazzychad / 000_metadata.json
Created October 19, 2021 22:56
Papercraft Cube Pumpkin Jack-o-Lantern
{
"title": "Papercraft Cube Pumpkin Jack-o-Lantern",
"timestamp": "2021-10-19T22:56:49.215Z",
"visibility": "public",
"parts": [
{
"id": "htQeIBJL802cPiId-y-1m.md",
"timestamp": "2021-10-19T22:56:49.215Z",
"type": "post",
"subtype": "markdown"
@jazzychad
jazzychad / UIDebouncedColorWell.swift
Created September 11, 2021 00:23
A better way to get color values from UIColorWells
//
// UIDebouncedColorWell.swift
//
import UIKit
import Combine
private class PublishingColor {
@Published var color: UIColor? = nil
}