Skip to content

Instantly share code, notes, and snippets.

View gwpl's full-sized avatar

Grzegorz Wierzowiecki gwpl

  • Europe - usually: Zürich, Warsaw or Berlin
View GitHub Profile
@gwpl
gwpl / sparql-toolchain-patterns.md
Last active March 9, 2026 18:59
Git-First Graph Databases: practical patterns for building graph data systems that start as text files and scale to production stores — with principles on data architecture vs. implementation architecture, sharding, and avoiding premature optimization
title status license
SPARQL Toolchain Patterns — Git-First Graph Databases
active
CC-BY-4.0

SPARQL Toolchain Patterns

**A practical guide to building graph databases that start as text files and scale to production stores — without losing clarity, auditability, or the

@gwpl
gwpl / 00_AnkiConnect-Setup-and-Integration-Guide-for-Agents-and-Programmers.md
Last active March 8, 2026 22:14
AnkiConnect: Setup & Integration Guide for Agents and Programmers — install, API basics, card CRUD, deduplication rules (with official docs references), TSV failover import, stats/scheduling queries

AnkiConnect: Setup & Integration Guide for Agents and Programmers

Practical guide to programmatically managing Anki flashcards via the AnkiConnect addon HTTP API.

Covers: installation, verification, card CRUD operations, statistics queries, deduplication behavior (with official documentation references), and batch workflows.

Contents

File Topic
@gwpl
gwpl / 00_Extending Cognitive Horizon Concept_Index.md
Last active March 6, 2026 16:58
Extending Cognitive Horizon Concept
@gwpl
gwpl / Claude-Code--Orchestration-Agents-Skills-Hooks--reference.md
Last active March 6, 2026 21:33
IndyDevDan: 4-Layer Claude Code Architecture — Skills → Agents → Commands → Reusability (Playwright Browser Automation & UI Testing) | Channel: https://www.youtube.com/@indydevdan
@gwpl
gwpl / 00_claude-code-session-branching.md
Last active February 17, 2026 19:00
Claude Code CLI: Programmatically Session Branching & Parallel Conversations — Educational guide + runnable experiment script

Claude Code CLI: Session Branching & Parallel Conversations - Programmatically via CLI in non-interactive mode!

Experiment: Exploring how to fork a single Claude Code conversation into multiple parallel branches using --session-id, --resume, and --fork-session.

The Idea: Git-like Branching for AI Conversations

Just like git branch lets you explore multiple code paths from a single commit, Claude Code's session flags let you fork a conversation at a decision point and explore multiple directions independently — each branch remembering the

@jlia0
jlia0 / agent loop
Last active March 10, 2026 10:59
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@gwpl
gwpl / cargo-example-select
Last active February 13, 2025 21:25
cargo-example-select - Script for selecting Rust examples comfortably
#!/bin/bash
# cargo-example-select - Script for selecting Rust examples comfortably
# run with --loop --clear for fun, e.g. in ratatui repo:
# git clone https://github.com/ratatui/ratatui.git && cd ratatui && cargo-example-select --loop --clear
# Published: https://gist.github.com/gwpl/f78af717785959ac81ec1fc21fb6056f
# Retrieve example names via cargo metadata and jq.
examples=$(cargo metadata --no-deps --format-version 1 | jq -r \
@gwpl
gwpl / about.md
Last active November 4, 2024 15:09
wikipedia_multistep_rag.py # Educational example showing how to extend llm_lottery.py [1] example to wikipedia_mini_rag.py example [2] to make agent that will continue searching and reading pages until achieves objective.

Wikipedia Multi-step RAG Example Solution to Task from wiki_mini_rag.py

You may want to see code and task first: wiki_mini_rag

This GitHub gist provides a solution to a task from the wikipedia_mini_rag.py example wiki_mini_rag, which was "How to turn Agent that first searches wikipedia and later reads article to answer query, into one that will continue searching and reading until has sufficient data. Hint: use insight from llm_lottery.py llm_lottery example.".

@gwpl
gwpl / Dockerfile.aur
Last active March 24, 2025 06:32
AUR in Dockerfile ArchLinux -> pacaur yay non-interactive etc (experiment)
# Making AUR work inside Dockerfile in non interactive way.(experiment)
# Use an official Arch Linux runtime as a parent image
FROM archlinux:latest
# Maintainer
LABEL maintainer="yourname@example.com"
# Update system and install dependencies (we do not modify this step for docker caching)
RUN pacman -Sy --noconfirm archlinux-keyring && \
pacman-key --init && \
@gwpl
gwpl / Example_Outputs.md
Last active September 6, 2024 12:10
Vector Embeddings Algebra Tests

Exmaple outputs

Ollama with mxbai-embed-large

similarities between "queen-woman+man" and ... = {'queen': 0.7664688552859836, 'woman': 0.16067344014964902, 'man': 0.643216410618745, 'king': 0.5296803458540953, 'knight': 0.36225247833752694, 'carpenter': 0.7134908064255635, 'baker': 0.723708193109565, 'girl': 0.734322206946502, 'boy': 0.7525008550380998}
similarities between "queen-girl+boy" and ... = {'queen': 0.9750610709453384, 'woman': 0.5392273263146471, 'man': 0.5579780738003502, 'king': 0.5312961528030734, 'knight': 0.5244125308085369, 'carpenter': 0.8835927517707559, 'baker': 0.9011729720423287, 'girl': 0.9227513575082695, 'boy': 0.9679081680297743}
similarities between "queen-woman-girl+man+boy" and ... = {'queen': 0.7059391012944155, 'woman': 0.11622645526937725, 'man': 0.6346237227600416, 'king': 0.5228061118283761, 'knight': 0.3225914898607214, 'carpenter': 0.6156882192910788, 'baker': 0.6321456800653157, 'girl': 0.6540596727195828, 'boy': 0.7065316024823556}