Skip to content

Instantly share code, notes, and snippets.

View soudmaijer's full-sized avatar

Stephan Oudmaijer soudmaijer

View GitHub Profile
@soudmaijer
soudmaijer / gist:ed0acf42b7997019eeea651180c2b4dd
Last active September 17, 2026 07:30
claude-code-costs.md
# Getting a grip on Claude Code costs
## What this is about
Claude Code behind an AI gateway typically runs on pay-as-you-go billing. You pay per token,
rather than drawing on a subscription quota that acts as a brake by itself. The consequence is
that nothing is visible while you work: no meter, no warning, no moment where something tells you
this session is getting more expensive than the last. You find out once the month is over.
That would be fine if the cost felt roughly predictable, and it does not. Intuition says an
# Frontend Development References
> Reference index covers Next.js, React, Tailwind CSS, shadcn/ui, Radix UI, TanStack Query, and TanStack Table.
## Next.js
- [Next.js Documentation](https://nextjs.org/docs): Official documentation hub — App Router, routing, rendering, data fetching, and deployment
- [Next.js GitHub Repository](https://github.com/vercel/next.js): Source code and releases
- [Next.js 16 Blog Post](https://nextjs.org/blog/next-16): Release notes and new features in Next.js 16
- [Next.js 16 Upgrade Guide](https://nextjs.org/docs/app/guides/upgrading/version-16): Migration guide from v15 to v16
# Backend development information
> Links to the latest documentation for the core technologies used in this project: Spring Boot, Spring AI, and Kotlin. If WebFetch does not work for any of these URLs, use a headless Chrome browser to retrieve the content instead.
## Spring Boot (4.0.2)
- [Overview](https://docs.spring.io/spring-boot/): Spring Boot documentation home
- [Getting Started](https://docs.spring.io/spring-boot/tutorial/first-application/index.html): Developing your first Spring Boot application
- [System Requirements](https://docs.spring.io/spring-boot/system-requirements.html): Minimum system requirements for Spring Boot 4.0
- [Developing with Spring Boot](https://docs.spring.io/spring-boot/reference/using/index.html): Build systems, structuring code, configuration
# Development guidelines
> Reference index for development documentation — authoritative resources covering backend (Spring Boot, Spring AI, Kotlin) and frontend (Next.js, React, Tailwind CSS, shadcn/ui) technologies.
These resources point to current, canonical documentation and supersede LLM training data when conflicts arise.
When a task targets a specific technology domain listed below, fetch and read the corresponding domain index, then follow the links to the relevant documentation. Each domain index is itself an llms.txt-formatted file containing categorized links to official docs.
## Domains
@soudmaijer
soudmaijer / pom.xml
Created December 11, 2024 15:10
Example kotlin + openapi generator
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.sourcelabs</groupId>
<artifactId>backoffice-tool</artifactId>
<version>0.0.1</version>
<packaging>jar</packaging>
@soudmaijer
soudmaijer / SpringBootKotlinApplication.kt
Last active November 6, 2024 14:00
Separation of different application responsibilities
import jakarta.validation.Valid
import org.apache.logging.log4j.LogManager
import org.springframework.data.annotation.Id
import org.springframework.data.relational.core.mapping.Column
import org.springframework.data.relational.core.mapping.Table
import org.springframework.data.repository.CrudRepository
import org.springframework.http.ResponseEntity
import org.springframework.stereotype.Repository
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
package nl.sourcelabs;
import com.hexadevlabs.gpt4all.LLModel;
import java.nio.file.Path;
import java.time.LocalDateTime;
public class Gpt4allJavaExample {
private String modelPath = "/Users/soudmaijer/gpt4all/models/ggml-gpt4all-j-v1.3-groovy.bin";
@soudmaijer
soudmaijer / SpringBootCamelApplication.kt
Last active February 21, 2023 08:36
Spring Boot application integrating Apache Camel
package nl.sourcelabs.springbootcamel
import org.apache.camel.CamelContext
import org.apache.camel.builder.RouteBuilder
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.context.annotation.Bean
@SpringBootApplication
class SpringBootCamelApplication {
fun using_with() {
val stringBuilder = StringBuilder()
stringBuilder.append("Hello")
stringBuilder.append(", Kotlin!")
print(stringBuilder.toString())
}
fun using_also(a: Int): Int {
val b = a * 10
if (b > 100) print(">100")
import java.io.IOException
fun bar() {
throw IOException()
}