Skip to content

Instantly share code, notes, and snippets.

View hamelsmu's full-sized avatar
💻
Always learning.

Hamel Husain hamelsmu

💻
Always learning.
View GitHub Profile
@hamelsmu
hamelsmu / Async_parallel.ipynb
Last active October 9, 2024 04:12
dataroom/nbs/db_queue.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hamelsmu
hamelsmu / structured_outputs.md
Created October 7, 2024 18:30
Structured Outputs

Structured Outputs

Introduction

JSON is one of the most widely used formats in the world for applications to exchange data.

Structured Outputs is a feature that ensures the model will always generate responses that adhere to your supplied JSON Schema, so you don't need to worry about the model omitting a required key, or hallucinating an invalid enum value.

Some benefits of Structed Outputs include:

@hamelsmu
hamelsmu / cracking_the_c-suite_'how_to_get_and_master_key_executive_roles'.md
Created September 30, 2024 22:30
Cracking the C-suite 'How to Get and Master Key Executive Roles'

All coursesLeadership & career

Share

Cracking the C-suite 'How to Get and Master Key Executive Roles'

4.8

(20 ratings)

Comparing Vanilla JS with HTMX and Hyperscript

🧑 human (Sep 21, 2024, 10:10 AM)

Compare these two approaches, one using vanilla js with HTMX and one using hyperscript. Explain the syntax of Hyperscript carefully to a programmer that has no knowledge of hyeprscript

<plain-js-example>
<button id="contacts-btn" hx-get="/contacts" hx-target="body"> ①
  Get Contacts
</button>
 ②
@hamelsmu
hamelsmu / fastcore.md
Created September 11, 2024 21:31
Fastcore Symbol List

fastcore Module Documentation

fastcore.basics

Basic functionality used in the fastai library

  • def ifnone(a, b) b if a is None else a

  • def maybe_attr(o, attr)

@hamelsmu
hamelsmu / basic_functionality.md
Created September 11, 2024 20:25
Basic functionality

Basic functionality

Basic functionality used in the fastai library

Basics


source

@hamelsmu
hamelsmu / a_tour_of_fastcore.md
Created September 11, 2024 20:23
A tour of fastcore

A tour of fastcore

Here’s a (somewhat) quick tour of a few higlights from fastcore.

Documentation

All fast.ai projects, including this one, are built with nbdev, which is a full literate programming environment built on Jupyter Notebooks. That means that every piece of documentation, including the page you’re reading now, can be accessed as interactive Jupyter notebooks. In fact, you can even grab a link directly to a notebook running interactively on Google Colab - if you want to follow along with this tour, click the link below:

colab_link('index')__
@hamelsmu
hamelsmu / fastcore:_an_underrated_python_library.md
Created September 11, 2024 20:21
fastcore: An Underrated Python Library

fastcore: An Underrated Python Library

A unique python library that extends the python programming language and provides utilities that enhance productivity.

Sep 1, 2020 • Hamel Husain • 14 min read

__fastcore fastai

Background __

@hamelsmu
hamelsmu / on_this_page.md
Created September 6, 2024 22:15
On this page
  • claudette

    • Claudette’s source

    • Tool loop

    • The async version

On this page

@hamelsmu
hamelsmu / on_this_page.md
Created September 6, 2024 22:15
On this page
  • claudette

    • Claudette’s source

    • Tool loop

    • The async version

On this page