Skip to content

Instantly share code, notes, and snippets.

View jph00's full-sized avatar
🦘

Jeremy Howard jph00

🦘
View GitHub Profile
@jph00
jph00 / read_url.py
Last active June 9, 2025 22:07
Sample for import_gist
from httpx import get as xget
def read_url(url:str):
"Reads a url"
return xget(url, follow_redirects=True).text
@jph00
jph00 / aider-results.md
Last active June 11, 2025 02:50
Aider evals
Model % correct Cost Time per case
gemini-2.5-pro-preview-06-05 (32k think) 83.1% $49.88 200.3s
o3 (high) + gpt-4.1 82.7% ? 110.0s
o3 (high) 79.6% $22.20 113.8s
gemini-2.5-pro-preview-06-05 (default think) 79.1% $45.60 175.2s
Gemini 2.5 Pro Preview 05-06 76.9% $37.41 165.3s
Gemini 2.5 Pro Preview 03-25 72.9% $0.00 45.3s
claude-opus-4-20250514 (32k thinking) 72.0% $65.75 44.1s
o4-mini (high) 72.0% $19.64 176.5s
@jph00
jph00 / lesson4-2019-nlp.md
Last active June 8, 2025 21:20
Partial transcript of Lesson 4: Deep Learning 2019 - NLP; Tabular data; Collaborative filtering; Embeddings

(A cleaned up transcription of this video section.)

Introduction to ULMFiT

The problem we'll solve

This series of three steps here is what we're going to start by digging into. We're going to start out with a movie review like this one and decide whether it's positive or negative sentiment about the movie. That is the problem we have.

image

@jph00
jph00 / importtest.py
Created May 10, 2025 04:13
Gist import test file
testfoo='testbar'
@jph00
jph00 / example.py
Created February 27, 2025 01:18
My first gist via API
print('Hello from GitHub API!')

Organizing FastHTML Applications Across Multiple Files

Let's explore two main approaches to splitting FastHTML applications into multiple files: using Mount and using APIRouter. I'll explain the pros and cons of each and provide practical examples.

1. Using Mount - The "Mini-Apps" Approach

Mount is ideal when you want to create semi-independent sub-applications that could potentially be reused across different projects. Think of these as "mini-apps" that handle specific features.

# blog/routes.py
@jph00
jph00 / example.py
Created February 5, 2025 05:09
My first gist via API
print('Hello from GitHub API!')
@jph00
jph00 / suapi.md
Last active December 5, 2024 00:56
GCP Service Usage API

Service Usage API

  • On this page
  • Service: serviceusage.googleapis.com
    • Discovery document
    • Service endpoint
  • REST Resource: v2alpha
  • REST Resource: v2alpha.categories.categoryServices
  • REST Resource: v2alpha.consumerPolicies
  • REST Resource: v2alpha.operations
@jph00
jph00 / gcp-quota-use.md
Created December 5, 2024 00:50
Google cloud quota use cases

Implement common use cases

bookmark_borderbookmark Stay organized with collections Save and categorize content based on your preferences.

  • On this page
  • Limitations
  • Track usage and request an increase when usage is over 80%
  • Decrease a quota
  • Copy quota preferences to another project
  • List pending quota requests
@jph00
jph00 / gcp-sak.md
Created December 4, 2024 23:40
Create and delete service account keys in gcp

Create and delete service account keys

bookmark_borderbookmark Stay organized with collections Save and categorize content based on your preferences.

  • On this page
  • Before you begin
    • Required roles
  • Allow service account key creation
  • Create a service account key
  • Delete a service account key