Skip to content

Instantly share code, notes, and snippets.

@birgitta410
birgitta410 / links_goto_cph_oct-2024.md
Last active October 4, 2024 05:41
Links from my talk at GOTO Copenhagen, Oct 4 2024
@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 / women_techmakes_resources.md
Last active March 28, 2017 09:03
Women Techmakers Meetup - Resources
@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: