Skip to content

Instantly share code, notes, and snippets.

View tildejustin's full-sized avatar

tildejustin

View GitHub Profile
@Lincoln-LM
Lincoln-LM / all_portals_ring_star.py
Last active March 9, 2025 22:13
Exact All Portals solver via formulating the problem as the ring star problem and solving that with a MILP solver.
"""Exact All Portals solver via formulating the problem as the ring star problem and solving that
with a MILP solver.
AP paths and this solver differ slightly from ring star as they require only a path and not a cycle.
AP paths additionally can make use of the world spawn point (origin) which technically makes most
edge weights asymmetrical.
The cycle issue is resolved by using a dummy root as the root that has a cost of 0 but must always
connect to the real root.
The edge from the last real node to the dummy root is then just not drawn.
A::B is a system with 4 tokens: `A#`, `#A`, `B#` and `#B`.
An A::B program is a sequence of tokens. Example:
B# A# #B #A B#
To *compute* a program, we must rewrite neighbor tokens, using the rules:
A# #A ... becomes ... nothing
A# #B ... becomes ... #B A#
@ExeRSolver
ExeRSolver / boatEyeSensitivitiesMod360v1_11.txt
Last active April 8, 2024 01:14
mod 360 safe boat eye sensitivities 1.12-
First column: sensitivity (this is what you should copy to your options file)
Second column: minimum angle increment
Third column: maximum angle before floating point rounding errors occur (bigger=better)
"divides 360/256" means that you can fix your boat angle by entering a boat after its initial rotation (assuming your boat angle is 0).
0.4341732 0.1171875 78643.234, divides 360/256
0.5643478 0.1875 629145.9, divides 360/256
0.694255 0.28125 314573.3
0.9613469 0.5625 629146.6
@g1eny0ung
g1eny0ung / OpenSourceIsNotAboutYou.md
Created November 3, 2020 04:32 — forked from richhickey/OpenSourceIsNotAboutYou.md
Open Source is Not About You

Open Source is Not About You

The only people entitled to say how open source 'ought' to work are people who run projects, and the scope of their entitlement extends only to their own projects.

Just because someone open sources something does not imply they owe the world a change in their status, focus and effort, e.g. from inventor to community manager.

As a user of something open source you are not thereby entitled to anything at all. You are not entitled to contribute. You are not entitled to features. You are not entitled to the attention of others. You are not entitled to having value attached to your complaints. You are not entitled to this explanation.

If you have expectations (of others) that aren't being met, those expectations are your own responsibility. You are responsible for your own needs. If you want things, make them.