Skip to content

Instantly share code, notes, and snippets.

@grauziitisos
grauziitisos / github_stars_star_scheme_query.sql
Last active November 3, 2026 22:34
Github stars data load to staging, then transform to star scheme and finally query
CREATE SCHEMA IF NOT EXISTS `premium-lead-431715-c6.github_star_schema_2`
OPTIONS (location = 'US');
-- load october DATA
CREATE OR REPLACE TABLE
`premium-lead-431715-c6.github_star_schema_2.stg_github_stars_202610`
AS
SELECT
repo.name AS repo_name,
@grauziitisos
grauziitisos / microgpt.py
Created February 25, 2026 19:36 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and run inference for 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