Skip to content

Instantly share code, notes, and snippets.

View jeffersonfr's full-sized avatar
💭
... reading

Jeff Ferr jeffersonfr

💭
... reading
  • Joao Pessoa - PB
View GitHub Profile
@karpathy
karpathy / microgpt.py
Last active November 5, 2026 03:59
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
@AdSegura
AdSegura / wireguard_show.py
Last active September 20, 2025 15:14
wireguard show client list
#!/usr/bin/env python3
##
# Show wireguard statistics with usernames assigned to their public keys
# $> ./wg-show.py with no options will use
# wg0_file="/etc/wireguard/wg0.conf"
# wg_iface="wg0"
# sg_to_timeout=300 seconds
#
# ./wg-show.py --help
# usage: wg-show.py [-h] [--config CONFIG] [--interface INTERFACE]
@FantasyCheese
FantasyCheese / main.dart
Created September 18, 2020 11:57
Simplest MultiProvider Example
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
void main() {
runApp(MultiProvider(
providers: [
ChangeNotifierProvider(create: (_) => Counter()),
ChangeNotifierProvider(create: (_) => Clock())
@knee-cola
knee-cola / ProgressiveImgLoader.js
Last active June 25, 2025 04:48
simple progressive texture image loader for Three.js
/**
* @author knee-cola / https://github.com/knee-cola
* Original file URL: https://gist.github.com/knee-cola/37875bc4359609b96c9f329cd2a68fa1
*/
// This is a simple progressive image loader for Three.js
// It enables the smaller image files to be loaded first,
// before the big texture image is fully loaded.
//
// The images are loaded in the order they are passed