I use [Tcl] as my scripting language of choice, and recently someone asked me why. This article is an attempt to answer that question.
Ousterhout's dichotomy claims that there are two general categories of programming languages:
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Inkscape - macOs - Absolute Path Wrapper | |
| ======================================== | |
| On *macOs*, *Inkscape* requires absolute paths to work:: | |
| https://answers.launchpad.net/inkscape/+question/280575 |
| (map! :map go-mode-map | |
| :localleader | |
| "a" #'go-tag-add | |
| "d" #'go-tag-remove | |
| "e" #'+go/play-buffer-or-region | |
| "i" #'go-goto-imports ; Go to imports | |
| (:prefix ("h" . "help") | |
| "." #'godoc-at-point ; Lookup in godoc | |
| "d" #'go-guru-describe ; Describe this | |
| "v" #'go-guru-freevars ; List free variables |
| # set an env var to the path to a config | |
| export REGTEST_CONFIG=$HOME/.config/hsd/regtest.conf | |
| # this assumes you have git cloned and npm installed handshake | |
| # be sure to start your handshake node with the same config | |
| # ./bin/hsd --config=$REGTEST_CONFIG | |
| # the cli tools live in node_modules/.bin | |
| # also depends on jq |
| ### | |
| ### [2023-06-19] UPDATE: Just tried to use my instructions again on a fresh install and it failed in a number of places. | |
| ###. Not sure if I'll update this gist (though I realise it seems to still have some traffic), but here's a list of | |
| ###. things to watch out for: | |
| ### - Check out the `nix-darwin` instructions, as they have changed. | |
| ### - There's a home manager gotcha https://github.com/nix-community/home-manager/issues/4026 | |
| ### | |
| # I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs). | |
| # So here's a minimal Gist which worked for me as an install on a new M1 Pro. |
Microk8s is a Canonical project to provide a kubernetes environment for local development, similar to minikube but without requiring a separate VM to manage. These instructions describe setting it up for common development use cases with Cilium and may be helpful in particular for testing BPF kernel extensions with Cilium.
Microk8s will run its own version of docker for the kubernetes runtime, so if you have an existing docker installation then this may be confusing, for instance when building images the image may be stored with one of these installations and not the other. This guide assumes you will run both docker daemon instances, and use your existing docker-ce for building Cilium while using the microk8s.docker daemon instance for the runtime of your kubernetes pods.
| """ | |
| The most atomic way to train and inference 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 |