Skip to content

Instantly share code, notes, and snippets.

Estimation

This document is an attempt to pin down all the things you don't think about when quoting for a project, and hopefully provide a starting point for some kind of framework to make quoting, working and delivering small-medium jobs more predictable and less stressful.

Contents

@akoepcke
akoepcke / summarization.md
Created July 8, 2025 08:30 — forked from tassa-yoniso-manasi-karoto/summarization.md
Claude code summarization prompt (2025-06)

Your task is to create a detailed summary of the conversation so far, paying close attention to the user's explicit requests and your previous actions. This summary should be thorough in capturing technical details, code patterns, and architectural decisions that would be essential for continuing development work without losing context.

Before providing your final summary, wrap your analysis in <analysis> tags to organize your thoughts and ensure you've covered all necessary points. In your analysis process:

  1. Chronologically analyze each message and section of the conversation. For each section thoroughly identify:
    • The user's explicit requests and intents
    • Your approach to addressing the user's requests
    • Key decisions, technical concepts and code patterns
  • Specific details like:
@akoepcke
akoepcke / Chat.vue
Created July 3, 2025 15:50 — forked from joshcirre/Chat.vue
Simple Chat App with Vue and useStream
<script setup lang="ts">
import StreamingIndicator from '@/components/StreamingIndicator.vue';
import { useStream } from '@laravel/stream-vue';
import { onMounted, onUnmounted, ref, watch } from 'vue';
type Message = {
type: 'response' | 'error' | 'prompt';
content: string;
};
const messages = ref<Message[]>([]);
const { data, send, cancel, isStreaming, id } = useStream('chat');
@akoepcke
akoepcke / geospatial-queries-laravel.md
Created July 3, 2025 12:23 — forked from imrankabir02/geospatial-queries-laravel.md
Detailed Documentation: Implementing Geospatial Queries in Laravel

This document provides a comprehensive guide to implementing geospatial queries in Laravel applications. It covers setting up your database, installing necessary packages, defining spatial data in your models, and performing various types of geospatial queries using Laravel's Eloquent ORM and query builder.

Table of Contents:

  1. Introduction to Geospatial Queries in Laravel
  2. Prerequisites
  3. Step 1: Setting up Your Database for Spatial Support
    • 3.1. PostgreSQL with PostGIS Extension (Recommended)
    • 3.2. MySQL (5.6+)
  4. Step 2: Configuring Laravel Database Connection
@akoepcke
akoepcke / LocalValetDriver.php
Created May 28, 2024 08:47 — forked from simonhamp/LocalValetDriver.php
Run anything you like through Laravel Herd
<?php
use Valet\Drivers\ValetDriver;
class LocalValetDriver extends ValetDriver
{
public function serves(string $sitePath, string $siteName, string $uri): bool
{
return true;
}
@akoepcke
akoepcke / tailwind.config.ts
Created July 17, 2023 16:49 — forked from jordienr/tailwind.config.ts
Tailwind SVG Grid Background
// Remember to install mini-svg-data-uri
// Follow me on twitter for memes @jordienr
import { type Config } from "tailwindcss";
const {
default: flattenColorPalette,
} = require("tailwindcss/lib/util/flattenColorPalette");
const svgToDataUri = require("mini-svg-data-uri");
export default {

There are two types of markup in Liquid: Output and Tag.

  • Output markup (which may resolve to text) is surrounded by
{{ matched pairs of curly brackets (ie, braces) }}
  • Tag markup (which cannot resolve to text) is surrounded by
@akoepcke
akoepcke / next.config.js
Created April 23, 2023 13:31 — forked from mdubourg001/next.config.js
Next.js - Force the creation of an index.html file for every page
module.exports = {
// forcing the creation of an index.html for every page to allow
// providers serving pages without having to add .html to the url
exportPathMap: async function (defaultPathMap) {
const pathMap = {};
for (const [path, config] of Object.entries(defaultPathMap)) {
if (path === "/") {
pathMap[path] = config;
} else {
@akoepcke
akoepcke / placeholder-image.js
Created March 1, 2023 09:44 — forked from stowball/placeholder-image.js
Placeholder React Components
function PlaceholderImage({
height,
width,
...consumerProps
}) {
return (
<img
{...consumerProps}
alt=""
src={`https://via.placeholder.com/${width}x${height}`}