Skip to content

Instantly share code, notes, and snippets.

View JayBazuzi's full-sized avatar

Jay Bazuzi JayBazuzi

View GitHub Profile

I made a thing

I made a tool which I call the "universal improver". I am having a hard time explaining it, because I can come at it from so many different directions:

  • A way to let AI coding agents loose on your code while minimizing risk of it breaking things
  • ... while minimizing the number of tokens consumed
  • ... while using older models
  • A for people that don't trust or dislike AI to get benefit from it in a way they can accept
  • A way to rein in the chaos of vibe coding
  • Improve legacy code that we would previously have not bothered doing, by making it safe and cheap
#! /bin/bash
set -euo pipefail
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export PYENV_ROOT="${script_dir}/.pyenv"
export PATH="${PYENV_ROOT}/bin:${PATH}"
if [ -d "${PYENV_ROOT}" ]; then
pyenv update
else
@JayBazuzi
JayBazuzi / README.md
Last active July 15, 2024 15:16
We have a tool we "distribute" via Git - clone and run it.

Quick Start

Mac/Linux

git clone http://..../foo
cd foo
./foo.sh

Windows

{
"imports": {
"std/": "https://deno.land/std@0.212.0/"
}
}
@JayBazuzi
JayBazuzi / _result.md
Last active April 5, 2023 19:21
This batch file produces different results depending on where I run it
D:\>one.cmd
success

D:\>cmd /c one.cmd
fail
using NUnit.Framework;
public class Hiker
{
[TestFixture]
public class Tests
{
[Test]
public void life_the_universe_and_everything()
{
@JayBazuzi
JayBazuzi / events.kt
Created July 4, 2022 00:10
Demonstration of asserting events in Kotlin
fun main() {
val foo = Foo()
val aClass = AClass()
aClass.OnBaz = foo::Bar
aClass.Do()
println(aClass.OnBaz == aClass.OnBaz)
println(aClass.OnBaz)
}
[TestClass]
public class Tests
{
[TestMethod]
public void TestProgram()
{
foreach (var main in new[] {
DirectCall.Program.Main1,
DependencyInjection.Program.Main2,
EventBased.Program.Main3,

Current:

r   extract method
R   extract method
R!! extract method
R** clean stuff up
B   oh no
B!! oh no
B** oh no
F   good stuff
@JayBazuzi
JayBazuzi / Port
Last active December 18, 2021 00:48
interface ITaxInfo {
async GetTaxInfo(sin: SIN) -> TaxInfo?
class Error {}
}