Skip to content

Instantly share code, notes, and snippets.

View wilhelmklopp's full-sized avatar
🏃‍♂️
runtime data

Wilhelm Klopp wilhelmklopp

🏃‍♂️
runtime data
View GitHub Profile

Making Files Gitignored but Searchable by Claude Code

The Problem

You have files (logs, traces, generated output) that should be:

  • Ignored by git - they shouldn't be committed
  • Searchable by Claude Code - so the AI can find and use them

By default, Claude Code's search respects .gitignore, so gitignored files are invisible to search.

@wilhelmklopp
wilhelmklopp / fib.py
Created March 14, 2025 01:50
kolo demo examples
# type: ignore
from functools import cache
import kolo
# @cache
def fib(x):
if x == 0:
return 0
if x == 1:
@wilhelmklopp
wilhelmklopp / fib.py
Last active October 29, 2022 20:17
kolo run demo. run with `kolo run python fib.py`
def fib(n):
if n:
return n == 1 and n or fib(n - 1) + fib(n - 2)
return 0
def A(m, n, s="% s"):
if m == 0:
return n + 1
if n == 0:
Check out my internet homepage wilhelmklopp.com
@wilhelmklopp
wilhelmklopp / python.json
Created May 4, 2020 21:20
slack block kit snippets for vscode
{
"Section block": {
"prefix": "section block",
"body": [
"{",
"\t\"type\": \"section\",",
"\t\"text\": {",
"\t\t\"type\": \"mrkdwn\",",
"\t\t\"text\": \"$TM_SELECTED_TEXT$0\"",
"\t}",

Keybase proof

I hereby claim:

  • I am wilhelmklopp on github.
  • I am wilhelmklopp (https://keybase.io/wilhelmklopp) on keybase.
  • I have a public key ASC8ne8tNPvmR1nHlZVhgwQuE-wgWH6JQE_wOjlOimbD3go

To claim this, I am signing this object:

{"data":{"viewer":{"repositories":{"edges":[{"node":{"languages":{"edges":[{"node":{"name":"Python","color":"#3572A5"}},{"node":{"name":"CSS","color":"#563d7c"}},{"node":{"name":"JavaScript","color":"#f1e05a"}},{"node":{"name":"HTML","color":"#e34c26"}}]}}},{"node":{"languages":{"edges":[{"node":{"name":"CSS","color":"#563d7c"}}]}}},{"node":{"languages":{"edges":[{"node":{"name":"Python","color":"#3572A5"}},{"node":{"name":"HTML","color":"#e34c26"}},{"node":{"name":"Shell","color":"#89e051"}},{"node":{"name":"CSS","color":"#563d7c"}},{"node":{"name":"JavaScript","color":"#f1e05a"}}]}}},{"node":{"languages":{"edges":[]}}},{"node":{"languages":{"edges":[{"node":{"name":"Python","color":"#3572A5"}},{"node":{"name":"CSS","color":"#563d7c"}},{"node":{"name":"HTML","color":"#e34c26"}}]}}},{"node":{"languages":{"edges":[{"node":{"name":"Ruby","color":"#701516"}},{"node":{"name":"HTML","color":"#e34c26"}},{"node":{"name":"CSS","color":"#563d7c"}},{"node":{"name":"JavaScript","color":"#f1e05a"}}]}}},{"node":{"language
@wilhelmklopp
wilhelmklopp / github-graphql-api-pre-workshop-instructions
Last active February 10, 2018 19:33
Pre-workshop Instructions for the GitHub GraphQL API workshop
Install Instructions for the MLH Prime GitHub GraphQL API Workshop
1. GraphiQL desktop app (you don't strictly needs this, but it makes tihngs easier)
If you're on a Mac
- If you don't have Brew, install it from here: https://brew.sh/
- if you already have brew run: brew cask install graphiql
If you're on Windows or Linux
- Make sure you have npm installed. (Get node and npm here: https://nodejs.org/en/)
@wilhelmklopp
wilhelmklopp / .gitignore
Created February 25, 2017 21:19
My .gitignore
.DS_store
*.sqlite3
.env
*.rdb
*.pyc
@wilhelmklopp
wilhelmklopp / skyscanner.py
Created January 27, 2016 01:04
Skyscanner API ISO-3166-1 Alpha 3 code problem
# The following snippet DOES NOT work
import requests
import datetime
tomorrow = datetime.date.today() + datetime.timedelta(days=1)
api_key = "YOUR-API-KEY-HERE"