Skip to content

Instantly share code, notes, and snippets.

View dkohlsdorf's full-sized avatar
🏠
Working from home

Daniel Kohlsdorf dkohlsdorf

🏠
Working from home
View GitHub Profile
@dkohlsdorf
dkohlsdorf / levensthein.c
Created January 29, 2022 23:16
Levenshtein distance in plain C
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
typedef struct {
int *data;
@dkohlsdorf
dkohlsdorf / lama_code.py
Created July 6, 2025 05:35
I asked claude to write a claude code infra for llama
#!/usr/bin/env python3
"""
Llama3-based Agentic Coding System
Implements the Claude Code architecture with Llama3 as the LLM
"""
import re
import json
import subprocess
import os
@dkohlsdorf
dkohlsdorf / MSA.cpp
Created October 26, 2025 17:40
Multiple Sequence Alignment
#include <algorithm>
#include <vector>
#include <tuple>
#include <cmath>
#include <cstdio>
#include <limits>
#include <memory>
const int SYMBOLIC_GAP = -1;