Skip to content

Instantly share code, notes, and snippets.

View davehorner's full-sized avatar

David Horner davehorner

View GitHub Profile
uv tool run copyparty
+-----------------+---------------------------------------------------------+
| Run Report | cargo-e (git@github.com:davehorner/cargo-e.git 19e82b5) |
|-----------------+---------------------------------------------------------|
| generated on | 2025-04-29 21:50:54 |
|-----------------+---------------------------------------------------------|
| cargo-e version | 0.2.19 |
|-----------------+---------------------------------------------------------|
| rustc version | rustc 1.86.0 (05f9846f8 2025-03-31) |
|-----------------+---------------------------------------------------------|
| system info | Windows - 11 (26100) - Windows 11 Home |
+-----------------+---------------------------------------------------------+
| Run Report | cargo-e (git@github.com:davehorner/cargo-e.git 19e82b5) |
|-----------------+---------------------------------------------------------|
| generated on | 2025-04-29 21:50:54 |
|-----------------+---------------------------------------------------------|
| cargo-e version | 0.2.19 |
|-----------------+---------------------------------------------------------|
| rustc version | rustc 1.86.0 (05f9846f8 2025-03-31) |
|-----------------+---------------------------------------------------------|
| system info | Windows - 11 (26100) - Windows 11 Home |
+-----------------+---------------------------------------------------------+
| Run Report | cargo-e (git@github.com:davehorner/cargo-e.git 19e82b5) |
|-----------------+---------------------------------------------------------|
| generated on | 2025-04-29 21:19:42 |
|-----------------+---------------------------------------------------------|
| cargo-e version | 0.2.19 |
|-----------------+---------------------------------------------------------|
| rustc version | rustc 1.86.0 (05f9846f8 2025-03-31) |
|-----------------+---------------------------------------------------------|
| system info | Windows - 11 (26100) - Windows 11 Home |
+-----------------+---------------------------------------------------------+
| Run Report | cargo-e (git@github.com:davehorner/cargo-e.git 19e82b5) |
|-----------------+---------------------------------------------------------|
| generated on | 2025-04-29 21:18:07 |
|-----------------+---------------------------------------------------------|
| cargo-e version | 0.2.19 |
|-----------------+---------------------------------------------------------|
| rustc version | rustc 1.86.0 (05f9846f8 2025-03-31) |
|-----------------+---------------------------------------------------------|
| system info | Windows - 11 (26100) - Windows 11 Home |
@davehorner
davehorner / gist:04a771086c1bd846d11d3b07245b4aa4
Created April 21, 2025 03:48
cargo-e external library makepad example - currently does not draw anything
#!/usr/bin/env rust-script
//! ```cargo
//! [dependencies]
//! cargo-e = { version = "*", features = ["uses_plugins","uses_rhai"] }
//! makepad-widgets = "0.6.0"
//! num_cpus = "1.16"
//! clap = { version = "4.5", features = ["derive"] }
//! ```
//!
//! A Makepad GUI listing all Cargo-e targets via ExtContext with Run buttons.
@davehorner
davehorner / simple.py
Created November 9, 2021 00:31 — forked from cswiercz/simple.py
A quick demonstration of how to plot multivalued complex functions in Python.
import numpy
import sympy
from mpl_toolkits.mplot3d import Axes3D
import matplotlib
from matplotlib import cm, colors
from matplotlib import pyplot as plt
branching_number = 2
@davehorner
davehorner / Convert Script – README.md
Created November 5, 2021 02:48 — forked from Zehkul/Convert Script – README.md
Script to quickly convert and crop videos from within mpv

#README:

This script for mpv intends to offer the fastest and simplest way to convert parts of a video—while you’re watching it and not really more work intensive than making a screenshot. A short demonstration: https://d.maxfile.ro/omdwzyhkoa.webm

##Installation:

You need:

  • yad (at least 0.26) (AUR)
@davehorner
davehorner / cached_factory.cpp
Created November 5, 2021 01:06 — forked from cswiercz/cached_factory.cpp
Herb Sutter's favorite sub-10 line C++ snippet: Factory w/Cache
/*
Cached Factory
Sometimes you want to make objects with a lifetime managed
by their target owner but you also want to hold reference
to them in a custom cache. The target owner, naturally, will
be given a shared_ptr to the output object. However, we don't
want the lifetime of the output object to be tied to the
internal cache. I.e. if the owner dies then the object should
die even if referenced in the cache.
We couldn’t find that file to show.