Skip to content

Instantly share code, notes, and snippets.

View cdimartino's full-sized avatar

Chris DiMartino cdimartino

View GitHub Profile
@cdimartino
cdimartino / ASSESSMENT.md
Last active November 1, 2026 15:22
Attempt A Survey/Thermal — labelled recovery continuation; sequence295 reconstructed; terminal victory frozen79bed51

Attempt A Survey/Thermal — labelled recovery continuation

Sequence295 end_turn is reconstructed, not an original receipt. Terminal victory is genuine subsequent manual play of the same expedition, not an uninterrupted original-primary audit. Original31 files and forensic annex verified unchanged.

Actual coverage

  • Thermal Lance/Tempered:28 plays, entry-exact2 bonuses and actual vent cooling observed.
  • Heat Sink/Sheltering:10 plays, flat8 ward distinct from organ healing/disruption and cooling.
@cdimartino
cdimartino / ASSESSMENT.md
Last active November 1, 2026 09:46
PR43 issue19 Cartographer PRIMARY 0093CG frozen98abb4b rewardgen1 victory evidence

Limited gate assessment — PR43 / issue19

PASS: requested primary manual rules expedition

Genuine terminal victory on detached frozen 98abb4b4f65acdfabb517346ae9784d0f4e70d0e, seed 0093CG, Cartographer, profile/pool0, fresh reward generation1/schema6/RNG1. Itinerary [2,4,1]. 22 wins, 80/100 final hull, minimum61, 60 end turns, 241 card plays, 399 successful commands, 3 retained rejections. Source fingerprints still match; checkout clean.

All 22 encounters have public pre-fight forecasts and post-fight committed-action/reward logs linked in encounter-index.json and comment-links.jsonl. Two genuine elites completed: Null Archivist and Magistrate Hulk. Final Parliament lasted9 turns, reached61 hull, and was defeated before the final reward skip directly entered terminal victory. The queued extra transition was rejected, not rewound.

The 22 generated rewards comprise17 ordinary,2 elite,3 boss offers. Seven cards and four powers were taken; eleven rewards skipped. Ten rewards exposed a ra

@cdimartino
cdimartino / ASSESSMENT.md
Last active November 1, 2026 07:39
Astral Wake PR42 Hollow Choir PRIMARY actual victory 277be86 seed0093CG — manual evidence, unverified replay

Final PRIMARY outcome and limited assessment

Genuine victory on frozen 277be86d5e920d4930ffd594e30c1229ae133243, seed 0093CG, profile/pool0, itinerary [2,4,1]. 22 encounters won; final103/104 hull, salvage98,155 end turns. Lowest committed hull51. Final Parliament lasted21 combat turns and reached60 hull. Final reward triggered victory at guard step760; queued transition rejected at761 without changing gameplay. Two total rejected commands are preserved, not erased.

The actual build used cheap attack/repair/utility sequences, printed-heal attacks, retained cards after intervening kind changes, and venting. Resource order and organ payload transitions are recorded per action in the chronological log. Blazing Canon was selected, genuinely used, then removed; this is a deck decision, not proof that its branch is inferior. No Shell was drafted solely to force coverage. Cool Measure was selected on two owned instances; selection/use counts are in summary.json.

Quiet-phase healing and removal of dangero

@cdimartino
cdimartino / benchmark_concurrent_vs_mutex.rb
Created April 16, 2024 18:16
Benchmark manual Mutex vs Concurrent::Array
require "benchmark"
require "concurrent-ruby"
class Bench
def initialize(arrayish)
@arrayish = arrayish
end
def self.run
count = 100
def solution(number)
{
15 => "FizzBuzz",
5 => "Buzz",
3 => "Fizz",
}.select { number % _1 == 0 }.map { _2 }.first
end
raise unless solution(3) == "Fizz"
raise unless solution(5) == "Buzz"
# From https://gist.github.com/Schwad/44f01093e4fe7d8a083a0bc2ac246918
#
# Given Data:
# https://gist.githubusercontent.com/Schwad/9938bc64a88727a3ab2eaaf9ee63c99a/raw/6519e28c85820caac2684cfbec5fe4af33f179a4/rows_of_sweet_jams.csv
#
# Output:
# - Has the blog URLs as key values
# - Each blog URL key points to nested arrays.
# - The arrays each have a list of filenames and kilobyte values of songs found on that website.
# - An array's total megabytes cannot exceed 120. (This is the limit when burning an 80 minute audio CD!)
❯ export SKIP_SMART_DYNAMIC_EXAMPLES=false; for iter in `seq 1 5`; do /usr/bin/time rails runner 'puts :booted_without_database_calls'
booted_without_database_calls
14.25 real 8.50 user 3.98 sys
booted_without_database_calls
13.97 real 8.58 user 4.01 sys
booted_without_database_calls
14.04 real 8.56 user 4.05 sys
booted_without_database_calls
12.76 real 8.35 user 3.80 sys
booted_without_database_calls
@cdimartino
cdimartino / utf8_unique_index.md
Last active July 23, 2020 02:48
UTF8MB4 not properly indexing my 💩

TLDR;

Unique index containing an utf8mb4 encoded string are 🤮 due to improperly indexed 💩 value.

Database State:

All collations appear to be utf8mb4 compatible. Note also that innodb_large_prefix = on.

mysql> select version();
mysql> show slave status \G
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: 172.18.0.119
Master_User: rdsrepladmin
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin-changelog.182568
Read_Master_Log_Pos: 42797165
## Fetch Panels (with presigned url for read)
query {
currentUser{
panels {
nodes {
id
title
type
brandingAsset {