Skip to content

Instantly share code, notes, and snippets.

@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 / 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": "Mazes",
"description": "I wanted to learn about maze generation, and some ideas came up along the way.",
"thumbnail": "https://jcprojectblogpublic.s3-us-west-2.amazonaws.com/tw/media/EhpYgK5XgAASpLU_medium.jpg",
"visibility": "public",
"twitter_collection_url": "https://twitter.com/jazzychad/timelines/1347303061329301504",
"posts": [
1599068706,
1599514646,
1599840732,
{
"title": "A very special 2020 Christmas Tree",
"description": "Lockdown meant no shopping for Christmas trees, so I made one instead.",
"thumbnail": "https://jcprojectblogpublic.s3.us-west-2.amazonaws.com/tw/ext_tw_video_thumb/1341811445814575108/pu/img/yOwHZRNlB7u2bZX5_medium.jpg",
"visibility": "public",
"twitter_thread_url": "https://twitter.com/_/status/1341811677872844800",
"posts": [
1608747808
]
}
{
"title": "Reflow Oven Conversion",
"description": "Using the Controleo3 kit to convert a toaster oven to a reflow oven",
"thumbnail": "https://jcprojectblogpublic.s3-us-west-2.amazonaws.com/__aaa__488F3567-C25A-4A82-8813-490D3678C7B5__sm.jpg",
"visibility": "public",
"id": "",
"posts": [
1596161472,
1596162078,
1596162459,
{
"title": "Desktop Traffic Light",
"description": "A goofy idea turns into a much bigger project.",
"thumbnail": "https://jcprojectblogpublic.s3-us-west-2.amazonaws.com/tw/media/D3rODTXUIAERboe_small.jpg",
"visibility": "public",
"twitter_collection_url": "https://twitter.com/jazzychad/timelines/1272025575159259136",
"posts": [
1552260599,
1552266769,
1552273181,
{
"title": "🎳 2019 Summer League",
"description": "My first bowling league in quite a while.",
"thumbnail": "https://jcprojectblogpublic.s3-us-west-2.amazonaws.com/tw/media/D7EMAMkVsAEq7NN_small.jpg",
"visibility": "public",
"twitter_collection_url": "https://twitter.com/jazzychad/timelines/1143571318949871617",
"posts": [
1558414429,
1559622617,
1560231308,
{
"title": "Drumset Keyboard",
"description": "I turned a kid's drumset toy into a computer keyboard. I like making stupid keyboards.",
"thumbnail": "https://jcprojectblogpublic.s3-us-west-2.amazonaws.com/tw/media/EOMx4QQVUAAPj8A_small.jpg",
"visibility": "public",
"twitter_collection_url": "https://twitter.com/jazzychad/timelines/1274234765541912576",
"posts": [
1577927679,
1578619171,
1578959670,
{
"title": "Acrylic LED Sign",
"description": "Using Neopixels, a laser cutter, and some acrylic to make a sign for my desk.",
"thumbnail": "https://jcprojectblogpublic.s3-us-west-2.amazonaws.com/tw/media/ERf6FV4UUAAGM5h_small.jpg",
"visibility": "public",
"twitter_thread_url": "https://twitter.com/_/status/1231805061639983104",
"posts": [
1582347590,
1582350627,
1582351359,