Skip to content

Instantly share code, notes, and snippets.

View lamont-granquist's full-sized avatar

Lamont Granquist lamont-granquist

View GitHub Profile
vs SJE - 0: .90 for 47.5 mins
-1: 2.1 for 47.5 mins
vs NYRB - 0: .87 for 22 mins (1 Goal)
- +1: 1.03 for 73 mins
vs VAN - 0: .23 for 43 mins
- -1: .14 for 14 mins
- -2: .11 for 38 mins
def delta_t_from_nu(nu, ecc, k=1.0, q=1.0, delta=1e-2):
"""Time elapsed since periapsis for given true anomaly.
Parameters
----------
nu : float
True anomaly.
ecc : float
Eccentricity.
k : float
Gravitational parameter.
(Stop at, last stage, optimize stage)
(2,2,2) Reaches desired orbit
(0,2,2) Reaches desired orbit
- intended. these are the right settings to use.
(2,2,off) If nothing is set to optimize, it will just go all the way through the first and second stages (but not start the third or fourth), injecting the craft into interplanetary space
- intended, the target box changes to burnout altitude and FPA to show that you're doing a whole-rocket-stage fixed burntime launch.
--- /tmp/foo 2023-03-29 13:28:00
+++ /tmp/bar 2023-03-29 13:28:18
@@ -1,37 +1,31 @@
UrlConfig
{
- parentUrl = RealScaleBoosters/Parts/Atlas/RSBtankAtlasCentaur.cfg
+ parentUrl = RealScaleBoosters/Parts/Ares/RSBtankAresIstage2.cfg
PART
{
- name = RSBtankAtlasCentaur
--- /tmp/foo 2023-03-29 13:07:25
+++ /tmp/bar 2023-03-29 13:07:49
@@ -1,11 +1,11 @@
PART
{
- part = RSBtankAtlasCentaur_4290440520
+ part = RSBtankAresIstage2_4290396532
partName = Part
- persistentId = 303437742
- pos = 0.45395872,53.1564255,-1.26740801
--- /tmp/foo 2023-03-29 13:07:25
+++ /tmp/bar 2023-03-29 13:07:49
@@ -1,11 +1,11 @@
PART
{
- part = RSBtankAtlasCentaur_4290440520
+ part = RSBtankAresIstage2_4290396532
partName = Part
- persistentId = 303437742
- pos = 0.45395872,53.1564255,-1.26740801
<?xml version="1.0" encoding="UTF-8"?>
<!--
biome
maxcount: int - the sum of all spawned entities in the group may not exceed this number
respawndelay: game days - .000278 real seconds, .0167 mins
daytime: Any,Day,Night - determines the time of day the entity spawns
<property name="TotalAlive" value="3" />
total alive means how many are alive at once.
<property name="TotalPerWave" value="10,20" />Total per wave means a random number between the first and second. The total alive will replenish the dead ranks until TotalPerWave's random number is met.
<?xml version="1.0" encoding="utf-8"?>
<!--
Game stage spawning: All game stage spawning starts with a "Spawner" which is a named object referenced in the code
or other data (like POIs). The spawner itself contains all of the gamestage information for that particular spawner.
Examples: BloodMoonHorde spawner, or a large POI spawn, or a POI spawn that contains janitor zombies.
Each spawner defines a set of game stages. An individual game stage defines the actual spawning and spawning progression
for that specific stage. The game stage number is an estimate of "difficulty", higher game stages should be harder than
lower game stages.
@lamont-granquist
lamont-granquist / impatient_rust_error_handling.md
Last active December 6, 2022 22:35
Rust error handling for the impatient

I really don't care at all: unwrap()

Just panics if the API returns a None or Err:

fs::create_dir(dir).unwrap();

I don't care but I want a slighly better message: expect()

Archive: SubnauticaQMMplusMods.zip
Length Date Time Name
--------- ---------- ----- ----
110 08-07-2020 22:36 changelog.txt
891 04-11-2021 10:29 doorstop_config.ini
25088 02-03-2022 20:11 winhttp.dll
7 09-19-2022 13:21 steam_appid.txt
0 09-19-2022 16:22 doorstop_libs/
24516 08-07-2020 22:36 doorstop_libs/libdoorstop_x64.dylib
24396 08-07-2020 22:36 doorstop_libs/libdoorstop_x86.dylib