Skip to content

Instantly share code, notes, and snippets.

View juftin's full-sized avatar
🤠
wranglin' data

Justin Flannery juftin

🤠
wranglin' data
View GitHub Profile
@juftin
juftin / aicli.py
Last active September 14, 2023 01:54
OpenAI powered AI Streaming CLI in just a few lines of code
import os
from datetime import datetime, timezone
from pathlib import Path
import openai
import rich.traceback
from prompt_toolkit import PromptSession
from prompt_toolkit.history import FileHistory
from rich.console import Console
from rich.live import Live
"""
Organization
https://www.hl7.org/fhir/organization.html
"""
import os
from typing import Type, TypeVar
import uvicorn
@juftin
juftin / epic_oauth2_client.py
Last active October 17, 2023 18:50
Epic EHR Integration with an HTTPX Client - authlib==1.2.1
"""
Epic OAuth2 Client
"""
from __future__ import annotations
import datetime
import logging
import os
import pathlib
@juftin
juftin / gource.sh
Created August 31, 2024 20:21
gource + ffmpeg
gource \
-s .03 \
-1920x1080 \
--auto-skip-seconds .1 \
--multi-sampling \
--stop-at-end \
--key \
--highlight-users \
--date-format "%Y-%m-%d" \
--hide mouse \
"""
semantic-release helper
"""
# /// script
# dependencies = [
# "click~=8.1.7",
# "packaging~=24.1",
# ]
# ///
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Seldon Core 2 vs. KServe: An Interactive Comparison</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>