Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active February 26, 2026 06:11
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
<?php
/**
* Plugin Name: Disable Textdomain Error
* Description: Prevents triggering errors for the '_load_textdomain_just_in_time' function.
* Author: Kowsar Hossain
* Version: 1.0
*
* Note: This is a Must-Use (MU) plugin. Place this file in the 'wp-content/mu-plugins' directory.
*/
@cba85
cba85 / app.js
Last active February 22, 2025 10:50
IJVS030 - Recherche de communes françaises jQuery
$(document).ready(function () {
$("form").on("submit", function (e) {
e.preventDefault();
$(".error").hide();
$(".no-results").hide();
$("#results").hide();
//const name = $("#name").val();
let name = $("input[name='name']").val();
@scottwyden
scottwyden / gist:b050192198ca3aa02320fc9290ba23c8
Created May 11, 2021 14:26
How to Make a Link in Bio Page in WordPress
<!-- wp:heading {"textAlign":"center","level":1,"style":{"typography":{"fontSize":"60px"}}} -->
<h1 class="has-text-align-center" style="font-size:60px">Logo Goes Here</h1>
<!-- /wp:heading -->
<!-- wp:spacer {"height":50} -->
<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"cyan-bluish-gray","textColor":"black","width":100,"style":{"border":{"radius":5}}} -->
@amboutwe
amboutwe / yoast_seo_breadcrumb_remove_link.php
Last active August 8, 2024 18:25
These snippets are examples of how you can modify the Yoast SEO breadcrumb visual output. These snippets will not alter the breadcrumb schema output. Please consult the schema documentation to change the breadcrumb schema: https://developer.yoast.com/features/schema/api#to-add-or-remove-graph-pieces