Skip to content

Instantly share code, notes, and snippets.

@ai-mannamalai
ai-mannamalai / HEIRonMacBuild-Feb-2025.md
Created February 11, 2025 17:21
Building HEIR on my M3 arm64x Mac OS X

Build HEIR on Mac OS-X Sonoma

I am sharing some notes on building HEIR on my M3 ARM64x Mac OS X.

Software Dependencies

  • I have homebrew installed
  • Bazel from Bazelisk worked for me after experimenting with various (too many) alternatives including build from source
    • Bazel for HEIR build is at version 6.4.0; whereas source build of Bazel is at v8 and doesn't support WORKSPACE files smoothly.
    • Bazelisk can be installed with homebrew.
  • Install latest clang compiler since Mac OSX comes with clang-16 which is kind of old; (see section on LLVM/CLANG below)
@Madjaa
Madjaa / index.html
Created February 11, 2025 17:21
vals day fiifi
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Be My Valentine, Fiifi?</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
body {

Mini-Projets en HTML, CSS et JavaScript

📌 1. To-Do List Interactive (Tableaux & DOM)

Objectif : Créer une liste de tâches avec possibilité d'ajouter et de supprimer des éléments.

🔸 Notions abordées

  • Tableaux (stockage des tâches)
  • Événements (click, keyup)
  • Manipulation du DOM (createElement, appendChild, removeChild)
@router.post("/run")
async def run_script(request: Request, cmd_req: CommandRequest):
"""Queue, acquire semaphore slot and execute standalone script."""
gpu_mgmt = request.app.state.gpu_management
try:
gpu_mgmt.queue.put_nowait(cmd_req.command)
except asyncio.QueueFull:
raise HTTPException(
status_code=status.HTTP_429_TOO_MANY_REQUESTS,
@c0sette
c0sette / pe_main.cpp
Created February 11, 2025 17:20
Read PEB format with format of WinDBG
#include <windows.h>
#include <winnt.h>
#include <winternl.h>
#include <intrin.h>
#include <iostream>
#include <bitset>
#ifdef _WIN64
PPEB peb = (PPEB)__readgsqword(0x60);
#else
PPEB peb = (PPEB)__readfsdword(0x30)
# /// script
# dependencies = [
# "marvin",
# ]
# ///
import os
import sys
import argparse
from pydantic import BaseModel, Field
[
{
"jmhVersion" : "1.37",
"benchmark" : "benchmarks.DestinationsBench.chess960",
"mode" : "thrpt",
"threads" : 1,
"forks" : 3,
"jvm" : "/opt/java/openjdk/bin/java",
"jvmArgs" : [
],
[
{
"jmhVersion" : "1.37",
"benchmark" : "benchmarks.DestinationsBench.chess960",
"mode" : "thrpt",
"threads" : 1,
"forks" : 3,
"jvm" : "/opt/java/openjdk/bin/java",
"jvmArgs" : [
],
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 17:17
Rimworld output log published using HugsLib
Log uploaded on Tuesday, February 11, 2025, 12:17:40 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
Anomaly(Ludeon.RimWorld.Anomaly): (no assemblies)
EdB Prepare Carefully(EdB.PrepareCarefully)[mv:1.5.12]: EdBPrepareCarefully(av:1.1.1,fv:1.5.12)
Vanilla Expanded Framework(OskarPotocki.VanillaFactionsExpanded.Core): 0ModSettingsFramework(1.0.0), 0MultiplayerAPI(av:0.3.0,fv:0.3.0), 0PrepatcherAPI(1.1.1), ExplosiveTrailsEffect(1.0.7140.31563), GraphicCustomization(1.0.0), HeavyWeapons(1.0.0), KCSG(av:1.1.2,fv:24.3.27), MVCF(2.0.0.1), NoCamShakeExplosions(1.0.0), OPToxic(1.0.0), Outposts(av:3.0.0,fv:1.0.0), PipeSystem(av:1.0.1,fv:22.7.29), RecipeInheritance(1.0.1), RRO(1.0.0), SmokingGun(1.0.0), VanillaStorytellersExpanded(1.0.0), VanillaWeaponsExpandedLaser(0.0.0), VFECore(av:1.1.7,f
@linux-riscv-bot
linux-riscv-bot / checkpatch-WARNING
Created February 11, 2025 17:17
pw932795-p13970207
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#59:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 134 lines checked
NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.
Commit 7048e66826c2 ("riscv: Optimize crct10dif with zbc extension") has style problems, please review.