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
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = ["opencv-python>=4.9", "numpy>=1.26", "mss>=9.0"] | |
| # /// | |
| """ | |
| Live Fortnite map position from the minimap, served as a web page. | |
| Reads your own screen, works out where you are on the island, and serves a map | |
| tile plus the nearest loot spawns with distance and compass bearing - so you can | |
| have it on a phone or second monitor while you play. |
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 author disclaims copyright to this source code. In place of a legal | |
| # notice, here is a blessing: | |
| # | |
| # May you do good and not evil. | |
| # May you find forgiveness for yourself and forgive others. | |
| # May you share freely, never taking more than you give. | |
| # | |
| # It is based on a snipped found in this project: | |
| # https://github.com/martinblech/mimerender |
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
| ;; Inspired by George Jahad's version: http://georgejahad.com/clojure/debug-repl.html | |
| (defmacro local-bindings | |
| "Produces a map of the names of local bindings to their values." | |
| [] | |
| (let [symbols (map key @clojure.lang.Compiler/LOCAL_ENV)] | |
| (zipmap (map (fn [sym] `(quote ~sym)) symbols) symbols))) | |
| (declare *locals*) | |
| (defn eval-with-locals |