Skip to content

Instantly share code, notes, and snippets.

@birgitta410
birgitta410 / agent_spike_enzyme_to_rtl.py
Last active October 4, 2024 05:06
Experiment: Enzyme test migration with autogen
# Created to accompany https://martinfowler.com/articles/exploring-gen-ai.html#memo-10
#
# Prerequisites:
# - pip install pyautogen
# - pip install python-dotenv
# - git clone [email protected]:openmrs/openmrs-react-components.git
# - .env file in the same directory with the respective env variables needed for the model connection
#
# Implementation based on https://microsoft.github.io/autogen/docs/notebooks/agentchat_function_call_code_writing/
# Prompt based on docs at https://testing-library.com/docs/react-testing-library/migrate-from-enzyme/
@birgitta410
birgitta410 / pull_all.sh
Last active January 3, 2018 15:33
Script to update multiple git repos in a folder
#!/bin/bash
set -e
RED='\033[0;31m'
GREEN='\033[0;32m'
BLUE='\033[1;34m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
BRANCH_AHEAD_PATTERN="^.*ahead.*$"
NOT_STAGED_PATTERN="^.*not staged.*$"
@birgitta410
birgitta410 / plato_repo_history.rb
Last active August 29, 2015 14:01
Simple script to generate JS static code analysis history for a git repository
#https://github.com/schacon/ruby-git
#https://github.com/es-analysis/plato
require 'git'
##################################
# root location of git repository
root_location = '/path/to/my/repo'
# JS scripts folder, relative to folder where script is started
@birgitta410
birgitta410 / hack.sh
Created August 30, 2013 11:18 — forked from DAddYE/hack.sh
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions:
OSZAR »