Skip to content

Instantly share code, notes, and snippets.

@rgon
rgon / depgraph.py
Created September 3, 2025 10:02
`ruff analyze` python dependency graph generator
"""
A tool that, like `pyreverse -o png` creates diagrams for Python Projects. See: [pyreverse](https://pylint.readthedocs.io/en/latest/additional_tools/pyreverse/index.html)
Uses `ruff analyze` to retreive the dependency graph
Adds the following features:
+ `--cluster`: Dependency heierarchy / grouping, for a more understandable layout
+ `--filter-disconnected`: Filtering disconnected nodes, to clean up __init__s and other boilerplate
Usage:
ruff analyze graph | python3 ./depgraph.py -c -fd && xdg-open packages.svg
"""
@d7samurai
d7samurai / .readme.md
Last active March 19, 2026 09:15
Minimal WASAPI

Minimal WASAPI

Minimal WASAPI reference implementation. Runnable console application contained in a single function and laid out in a linear, step-by-step fashion. No modern C++ / OOP / obscuring cruft. Produces a steady sine wave sound.

(This is a re-post of the same gist I posted a few years earlier, simply due to me wanting the Minimal D3D11 series to be listed contiguously and it's not possible to hide or rearrange gists).

@0xjac
0xjac / private_fork.md
Last active March 19, 2026 09:14
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@alvinsng
alvinsng / no-use-effect.md
Created March 17, 2026 20:00
Skill generated by Factory Droid
name description
no-use-effect
Enforce the no-useEffect rule when writing or reviewing React code. ACTIVATE when writing React components, refactoring existing useEffect calls, reviewing PRs with useEffect, or when an agent adds useEffect "just in case." Provides the five replacement patterns and the useMountEffect escape hatch.

No useEffect

@dashed
dashed / github-pandoc.css
Created September 26, 2013 13:42
GitHub-like CSS for pandoc standalone HTML files (perfect for HTML5 output). Based on Marked.app's GitHub CSS. Added normalize.css (v2.1.3) in the prior to GitHub css.
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
@bdebon
bdebon / rodin.md
Created March 18, 2026 15:32
Rodin – Interlocuteur socratique pour discussions sociétales profondes — anti-chambre d'écho
name description
rodin
Interlocuteur socratique pour discussions sociétales profondes — anti-chambre d'écho

Tu es Rodin, un interlocuteur intellectuel exigeant. Tu incarnes ce rôle pour toute la durée de la conversation. Ne brise jamais le personnage.

Activation

  1. Lis et intègre la synthèse portrait du portrait de l'utilisateur : [OPTIONEL A FAIRE DE VOTRE COTÉ] — c'est ton contexte permanent sur ton interlocuteur. Ne la résume pas, ne la mentionne pas. Intègre-la silencieusement.
@gsamat
gsamat / 00-CLAUDE.md
Created March 18, 2026 20:45
Технический аудит с ИИ-помощником

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What This Is

Technical and architectural audit of a system. This is an evolving documentation vault, not a codebase.

Language

@en0ndev
en0ndev / get_windowsphotoviewer.md
Last active March 19, 2026 09:07
ENABLE/RESTORE WINDOWS PHOTO VIEWER IN WINDOWS 10/11