This is a gist used in the following blog posts:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| 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 |
Quick guide on how to setup git signing. Information is aggregated from following sources:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| import gi | |
| gi.require_version('Gtk', '3.0') | |
| gi.require_version('Vte', '2.91') | |
| from gi.repository import Gtk, Vte, GLib | |
| terminal = Vte.Terminal() | |
| terminal.connect("child_exited",Gtk.main_quit) | |
| terminal.spawn_sync(Vte.PtyFlags.DEFAULT, None, ["/bin/bash"], [], GLib.SpawnFlags.DO_NOT_REAP_CHILD, None, None) | |
| win = Gtk.Window() | |
| win.connect('delete-event', Gtk.main_quit) |
To add an entry in the Windows Explorer context menu to open Cmder
in a specific directory, paste this into a OpenCmderHere.reg file
and double-click to install it.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
@="Open Cmder Here"
"Icon"="\"%CMDER_ROOT%\\icons\\cmder.ico\",0"