Skip to content

Instantly share code, notes, and snippets.

View santiagogarza's full-sized avatar

Santi Garza santiagogarza

View GitHub Profile
@santiagogarza
santiagogarza / interestTaggedPodcasts.json
Last active May 6, 2025 00:02
Interest-Tagged Podcasts JSON
[
{
"podcastTitle": "The Joe Rogan Experience",
"primaryInterests": [
"Funny Interviews",
"Philosophy & Ideas",
"Social Issues",
"Personal Stories"
],
"secondaryInterests": [
from typing import List
from dataclasses import dataclass
@dataclass
class UserCompodabilityStore:
interests: List[str]
top_pods: List[str]
most_listened_pods: List[str]
# Subscriptions are intentionally ignored
@santiagogarza
santiagogarza / LevenshteinDistanceSort.js
Last active September 5, 2024 07:06
Sorts users for query, by combining Levenshtein distance and substring matching.
function levenshteinDistance(s, t) {
const d = []; // 2d matrix
const n = s.length;
const m = t.length;
if (n == 0) return m;
if (m == 0) return n;
// Create an array of arrays in javascript (a descending loop is quicker)