Skip to content

Instantly share code, notes, and snippets.

View jph00's full-sized avatar
🦘

Jeremy Howard jph00

🦘
View GitHub Profile
@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
@jph00
jph00 / bsky.ipynb
Created December 2, 2024 04:08
Unfollow bsky non-mutuals
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jph00
jph00 / polya.md
Last active February 21, 2025 20:07
Summary of Polya's "How To Solve It With Code"

A guide to George Polya's "How to Solve It"

Introduction

George Polya (1887-1985) was a Hungarian mathematician and educator who revolutionized our understanding of problem-solving and teaching. While he made significant contributions to mathematics, his most enduring legacy is his insights into how people learn and solve problems. His 1945 book "How to Solve It" has influenced educators across numerous fields, extending far beyond mathematics.

Polya's Teaching Philosophy

Polya's approach centered on three key principles. First, he championed active learning, believing students learn best by discovering solutions themselves rather than being told answers. Second, he emphasized heuristic thinking - the art of guided discovery and learning from experience, viewing problem-solving as a skill that can be developed through practice. Third, he developed sophisticated questionin

@jph00
jph00 / solveit.md
Created November 21, 2024 02:15
deepseek-solveit

The Future of AI Education: fast.ai Joins Forces with Answer.AI

Date: November 20, 2024
Author: Jeremy Howard
Categories: AI Education, fast.ai, Answer.AI


In the rapidly evolving world of artificial intelligence, the need for accessible, practical education has never been more crucial. Today, I am excited to announce that fast.ai is joining forces with Answer.AI to bring you a new era of AI education. This partnership is not just about combining resources; it's about creating a new kind of learning experience that leverages the power of AI to solve real-world problems.

@jph00
jph00 / hbr-questions.md
Created September 28, 2024 14:38
The Surprising Power of Questions - HBR

The Surprising Power of Questions

It goes far beyond exchanging information.

by

  • Alison Wood Brooks
  • Leslie K. John

From Harvard Business Review Magazine (May–June 2018)