Skip to content

Instantly share code, notes, and snippets.

We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 17 columns, instead of 5. in line 7.
Address,Line,Source/Assembly,CYCLES_NOT_IN_HALT,RETIRED_INST,CPI,RETIRED_BR_INST (PTI),RETIRED_BR_INST_MISP (PTI),%RETIRED_BR_INST_MISP,RETIRED_BR_INST_MISP_RATE,RETIRED_BR_INST_MISP_RATIO,RETIRED_BR_INST_RATE,RETIRED_INDIRECT_BR_INST_MISP (PTI),RETIRED_NEAR_RETURNS (PTI),RETIRED_NEAR_RETURNS_MISP (PTI),RETIRED_TAKEN_BR_INST (PTI),RETIRED_TAKEN_BR_INST_MISP (PTI)
,33,let oc = &ray.origin - &self.center;,1173000000,1064500000,1.10,139.15,1.64,1.18,,0.01,0.14,,51.46,0.05,110.66,0.89
0x3f305,33,"add rdx, 0x10",11750000,14000000,0.84,133.93,,,,,0.13,,42.86,,103.57,
0x3f309,33,"mov qword ptr [rbp + 0xb8], rdx",,500000,,50.00,,,,,0.05,,,,,
0x3f310,33,"mov qword ptr [rbp + 0x1e8], r8",6000000,5750000,1.04,126.09,8.70,6.90,,0.07,0.13,,43.48,,104.35,
0x3f317,33,"mov qword ptr [rbp + 0x1f0], rdx",12500000,11250000,1.11,142.22,,,,,0.14,,71.11,,115.56,
0x3f31e,33,"mov qword ptr [rbp + 0x758], r8",15000000,11750000,1.28,159.57,4.26,2.67,,0.03,0.16,,38.30,,125.53,2.13
0x3f325,33,"mov qword ptr [rbp + 0x760], 0",93500000,86
#[derive(serde::Deserialize, serde::Serialize, Debug, Clone, Default)]
#[serde(crate = "rocket::serde")]
struct Day06Output {
elf: u64,
#[serde(rename = "elf on a shelf")]
elf_on_a_shelf: u64,
#[serde(rename = "shelf with no elf on it")]
shelf_with_no_elf_on_it: u64,
}
@pawarherschel
pawarherschel / cv.astro
Created April 17, 2024 13:59
cursed fuckin method to embed my cv, downloads the git repo in node_modules and then compiles the typst code
import MainGridLayout from "../layouts/MainGridLayout.astro";
import {i18n} from "../i18n/translation";
import I18nKey from "../i18n/i18nKey";
import {exec} from "child_process";
import * as typst from "typst";
import * as fs from "node:fs";
import {DOMParser} from "xmldom";
import MainGridLayout from "../layouts/MainGridLayout.astro";
import {i18n} from "../i18n/translation";
import I18nKey from "../i18n/i18nKey";
import {exec} from "node:child_process";
import {readFile, access} from "node:fs/promises";
import * as typst from "typst";
import {DOMParser} from "xmldom";