Skip to content

Instantly share code, notes, and snippets.

@brackendev
brackendev / git_llm.bb
Last active October 15, 2025 13:46
Git LLM - LLM-powered commit messages and PR descriptions
#!/usr/bin/env bb
;; ============================================================================
;; Git LLM - LLM-powered commit messages and PR descriptions
;; ============================================================================
;; This is a Babashka script - a fast-starting scripting environment for Clojure
;; Learn more at https://babashka.org/
;;
;; This script uses LLMs (Claude or Codex) to generate git commit messages and
;; PR descriptions based on code changes. It can either preview the generated
@esshka
esshka / clojure_swe.txt
Created February 24, 2025 14:13
Clojure SWE REPL-driven prompt
Objective: Develop a Clojure application using REPL-driven development.
Instructions:
Start with small, fundamental functions:
Identify the core features or functionalities required for your application.
Break each feature down into the smallest, most basic functions that can be developed and tested independently.
Write and test in the REPL:
Write the code for each small function directly in the REPL (Read-Eval-Print Loop).
Test it thoroughly with a variety of inputs, including typical use cases and relevant edge cases, to ensure it behaves as expected.
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active December 10, 2025 16:05
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@tolo
tolo / nested_navigation_shell_route.dart
Last active November 13, 2025 00:02
Example showing how to use go_router to build persistent nested navigation (i.e. separate nested navigation trees) with a BottomNavigationBar.
// This temporary implementation is now obsolete, see instead:
// https://pub.dev/documentation/go_router/latest/go_router/StatefulShellRoute-class.html
@brackendev
brackendev / clean_flutter_project.sh
Created December 15, 2021 21:30
Clean Flutter project
#!/bin/sh
rm -rf .dart_tool
rm -rf build
rm -rf ~/.gradle
rm -rf .gradle
rm -rf android/.gradle
rm -f pubspec.lock
flutter clean
(ns repl-sessions.demo-2021-07
(:require [lambdaisland.witchcraft :as wc]
[lambdaisland.witchcraft.cursor :as c]
[lambdaisland.witchcraft.events :as e]
[lambdaisland.witchcraft.worlds :as worlds]))
;; First start the server, if you want a clean slate you can create
;; a "superflat" world, otherwise you'll get a more typically generated world.
(wc/start! {;;:server-port 4567
;;:config-dir "/tmp/config"
@brackendev
brackendev / xlm_validate.py
Created March 4, 2021 18:02
Validate XML file
#!/usr/bin/env python3
from xml.sax.handler import ContentHandler
from xml.sax import make_parser
from glob import glob
import sys
def parsefile(file):
parser = make_parser()
parser.setContentHandler(ContentHandler())
@holyjak
holyjak / http-server.bb
Last active May 20, 2025 08:49
Babashka HTTP server for serving static files, similar to `python -m http.server` but more flexible :)
#!/usr/bin/env bb
#_" -*- mode: clojure; -*-"
;; Based on https://github.com/babashka/babashka/blob/master/examples/image_viewer.clj
(ns http-server
(:require [babashka.fs :as fs]
[clojure.java.browse :as browse]
[clojure.string :as str]
[clojure.tools.cli :refer [parse-opts]]
[org.httpkit.server :as server]
@no-defun-allowed
no-defun-allowed / selling-lisp-by-the-pound.org
Last active April 17, 2024 06:10
Selling Lisp by the pound

Selling Lisp by the Pound

“Paper late!” cried a voice in the crowd,

“Old man dies!” The note he left was signed,

‘Old Kiczales’ - it seems he’s drowned!

@MelbourneDeveloper
MelbourneDeveloper / Stuff That Software Developers Do.md
Last active April 15, 2024 12:30
Stuff That Software Developers Do

Stuff That Software Developers Do

This is a list of stuff that the average software developer does from week to week

Coding

  • Code design
  • Refactoring
  • Algorithms
  • Profiling
  • Code reviews
  • Building frameworks