Skip to content

Instantly share code, notes, and snippets.

View nicoquant's full-sized avatar
🍥
Coding

Manelli nicoquant

🍥
Coding
  • Paris Dauphine University
  • Paris
View GitHub Profile
@karpathy
karpathy / microgpt.py
Last active February 15, 2026 22:15
microgpt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@briglx
briglx / extract.py
Last active November 25, 2025 22:19
Extract Email from Outlook with Python
#!/usr/bin/python
"""Script to fetch email from outlook."""
import win32com.client
def extract(count):
"""Get emails from outlook."""
items = []
outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
inbox = outlook.GetDefaultFolder(6) # "6" refers to the inbox