Skip to content

Instantly share code, notes, and snippets.

@olekashiwa
olekashiwa / microgpt.py
Created March 8, 2026 07:58 — 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
@olekashiwa
olekashiwa / vvedeniye-v-mashinnoye-obucheniye-i-iskusstvennyye-neyronnyye-seti.md Введение в машинное обучение и искусственные нейронные сети
@olekashiwa
olekashiwa / toxic_comments_example.ipynb
Created November 25, 2021 16:30 — forked from a-v-ershov/toxic_comments_example.ipynb
An example of data science task
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@olekashiwa
olekashiwa / erc721-example.sol
Created May 31, 2018 16:06 — forked from aunyks/erc721-example.sol
My implementation of the ERC721 token standard. WARNING: THIS CODE IS FOR EDUCATIONAL PURPOSES. DO NOT DEPLOY TO THE NETWORK.
pragma solidity ^0.4.19;
contract ERC721 {
string constant private tokenName = "My ERC721 Token";
string constant private tokenSymbol = "MET";
uint256 constant private totalTokens = 1000000;
mapping(address => uint) private balances;
mapping(uint256 => address) private tokenOwners;
mapping(uint256 => bool) private tokenExists;
mapping(address => mapping (address => uint256)) private allowed;
mapping(address => mapping(uint256 => uint256)) private ownerTokens;