Skip to content

Instantly share code, notes, and snippets.

View bishopb's full-sized avatar
🐢
I may be slow to respond.

Bishop Bettini bishopb

🐢
I may be slow to respond.
View GitHub Profile

You are creating a Reasoning Framework, a set of guidance that will shape how the Bioscope AI reasons about clinical questions in your area of expertise. Each section below is a "frame", which is just a single paragraph of guidance about either a specific clinical situation or a general instruction for how the AI should communicate. You can have as many frames as you need. Each frame is just a paragraph answering a few key questions. Write naturally, as if you were explaining your thinking to a colleague.

Questions each frame should answer:

  1. When this applies: Describe the situation, clinical context, or condition under which this guidance should be activated. If this guidance applies to all conversations (such as communication style or formatting preferences), say so here.
  2. The usual approach: What is the standard or textbook practice for this situation? What would most clinicians do by default? If this is a communication or style directive, describe how the AI typically writes.
  3. _What to consider
@bishopb
bishopb / aws-login-with-mfa
Created September 28, 2022 02:07
Simple bash wrapper around the AWS CLI commands necessary to get temporary tokens from AWS STS using an identity with MFA
#!/bin/bash
set -euo pipefail
trap 'echo "Caught SIGINT. Exiting..." >&2; exit 1' INT
tmpfile=$(mktemp)
chmod 600 "${tmpfile}"
trap 'rm -f "${tmpfile}"' EXIT
@bishopb
bishopb / README.md
Created January 7, 2021 18:11
Show all AWS actions, resources, and conditions known to AWS Policy Generator

Looking for a structured list of AWS actions, resources, and conditions? Tired of hunting through the AWS Documentation?

Then just use this simple script.

For example:

aws-arc.sh '.serviceMap["AWS Accounts"]'
/**
*
* App.js
*
* creates the Logi global variable
* starts loading the application's initial client side files
* kicks off the Angular bootstrap
*
* Table of Contents
* 1. Create the Logi global variable
@bishopb
bishopb / contents-kind-distribution
Created April 26, 2019 05:12
Number Format Separator Drill
contents_kind count notes
test 86692 *Test.php, */{examples,tests}/*
code 256551
data 2359458 *json.php, */{data,fonts,charset}/*
<?php
/**
* Simple class to parse the contents of a cookie jar file created by the cURL extension.
*
* <code>
* $jar = new CurlCookieJar('/tmp/curl-cookies');
* foreach ($jar->getAllCookies() as $cookie) {
* if ($cookie->expires < time()) {
* echo "Cookie named {$cookie->name} has expired\n";
@bishopb
bishopb / FluentRouter.php
Created September 21, 2016 13:52
Fluent Router in PHP
<?php
class FluentRouter
{
const DEADEND_EXCEPTION = 1;
const DEADEND_RETRY = 2;
const DEADEND_BLACKHOLE = 3;
public function __construct(array $callbacks = [], $deadend = null)
{