Tested on Ubuntu 22.04 (arm64 and x64)
- Install dependicies
- pip:
sudo apt install python3-pip - colcon:
pip install -U colcon-common-extensions
| """ | |
| 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 |
| # vim style tmux config | |
| # use C-a, since it's on the home row and easier to hit than C-b | |
| set-option -g prefix C-a | |
| unbind-key C-a | |
| bind-key C-a send-prefix | |
| set -g base-index 1 | |
| # Easy config reload | |
| bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded." |
| public static boolean isSlimeChunk(int cX, int cZ){ | |
| // | |
| // MCPE slime-chunk checker | |
| // From Minecraft: Pocket Edition 0.15.0 (0.15.0.50_V870150050) | |
| // Reverse engineered by @protolambda and @jocopa3 | |
| // | |
| // NOTE: | |
| // - The world-seed doesn't seem to be incorporated into the randomness, which is very odd. | |
| // This means that every world has its slime-chunks in the exact same chunks! | |
| // Update: @_tomcc has confirmed in a reddit PM that this is "entirely possible!". |