Skip to content

Instantly share code, notes, and snippets.

View dannyob's full-sized avatar

Danny O'Brien dannyob

View GitHub Profile
@dannyob
dannyob / fortnite_position.py
Last active September 3, 2026 06:29
Live Fortnite map position from the minimap: SIFT-matches your minimap against the island, serves position + nearest loot with bearings on a local web page. Passive screen capture only.
# /// 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.

Haskell in Production: Adventures in Blockchain Building

@samuraisam
samuraisam / parse_accept.py
Created May 16, 2012 21:43
Parse an accept header in Python w/ support for vendor types
# 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
@ato
ato / debug.clj
Created December 9, 2009 11:42
Simpler debug-repl that works with unmodified Clojure
;; 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