Skip to content

Instantly share code, notes, and snippets.

@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
}
@jazzychad
jazzychad / ShazamKitCatalogGeneration.swift
Created June 11, 2021 07:18
ShazamKit catalog generation for an audio file
import AVFoundation
import ShazamKit
func generateSignatureAndCatalogFromAudioFile() {
// this function takes an audio file and creates a ShazamKit signature for it,
// creates a media item to associate with the signature,
// creates a custom catalog with one entry (the audio signature + media item),
// and writes it out to disk as a .shazamcatalog file
@jazzychad
jazzychad / metadata.json
Last active June 29, 2021 13:37
How to Ship Without a Deadline
{
"title": "How to Ship Without a Deadline",
"timestamp": "2014-10-15T17:14:05.000Z",
"visbility": "public",
"visibility": "public"
}
@jazzychad
jazzychad / 000_metadata.json
Last active June 3, 2021 09:07
Making an app in 18 days
{
"title": "Making an app in 18 days",
"timestamp": "2021-06-02T20:24:58.668Z",
"visibility": "public",
"parts": [
{
"id": "vLqqHf8vWVNPD5u4SQrGJ.md",
"timestamp": "2021-06-02T20:24:58.668Z",
"type": "post",
"subtype": "markdown"
@jazzychad
jazzychad / 000_index.json
Last active June 3, 2021 00:24
Gistblog 2.0 index
{
"title": "jazzychad.txt",
"posts": [
{
"id": "1fa71a330316994f5b2b08ffeb2b218b",
"title": "Making an app in 18 days",
"blurb": "The following is the first issue of a daily newsletter I'm sending out which chronicles the progress of making an app in 18 days.",
"timestamp": "2021-06-02T20:24:58.668Z",
"visibility": "public"
},
{
"title": "First Post",
"timestamp": "2013-07-16T09:15:43.000Z",
"visbility": "public"
}
{
"title": "gistblog Features I Want",
"timestamp": "2013-07-16T19:51:15.000Z",
"visbility": "public"
}
{
"title": "Web-app idea: Good Day Bad Day",
"timestamp": "2013-07-24T21:45:31.000Z",
"visbility": "public"
}
{
"title": "An annoying iOS 7 behavior",
"timestamp": "2013-10-26T22:18:10.000Z",
"visbility": "public"
}