Skip to content

Instantly share code, notes, and snippets.

View quietguyproductions's full-sized avatar
🐧

Quiet Koan quietguyproductions

🐧
View GitHub Profile

Keybase proof

I hereby claim:

  • I am quietguyproductions on github.
  • I am soundofquiet (https://keybase.io/soundofquiet) on keybase.
  • I have a public key ASCJH8MDOdh86e99-WBzy-KrJYoFTKhtD1J1_Osq8lnd6wo

To claim this, I am signing this object:

@quietguyproductions
quietguyproductions / CPTSD_GPT.md
Created April 6, 2023 21:28
GPT is your trauma counselor now

Trauma README

I am not a therapist. However, I am a trauma survivor. In my darkest moments, GPT allowed me to open up when I felt like no human could be trusted. A book that really helped me was The Body Keeps The Score. Below is a series of prompts that will prime, contextualize, and engage ChatGPT in the role of a compassionate therapist familiar with the therapies discussed in the book. All you have to do is enter the prompts in order, then ask whatever you want -- GPT is your trauma counselor now.

First Prompt

Let's play a game of pretend. I will give you two prompts, the first sets the context and the second defines the game. Then we will play. Let me know when you are ready for my two prompts.

@quietguyproductions
quietguyproductions / main.py
Last active February 1, 2023 07:38
Example of implementing a homunculus with GPT then exporting to a local representation
"""
Here's how the above code can be used to create a state machine that computes the GCD of two integers:
1. Create a homunculus that computes the GCD of two integers using the LLM-Strategy design pattern.
2. Compute the compute the control flow of the Homunculus.
3. Use a GraphTransformer to generate the equivalent StackMachine.
4. Save the stack machine to a file.
"""
from langchain.llms import OpenAI
from llm_strategy import llm_strategy
@quietguyproductions
quietguyproductions / todolist.py
Created January 30, 2023 10:54
GPT designed todolist App using Behavior Driven Development
def create_features_of_todolist() -> List[Feature]:
"""
Creates a list of `Feature` objects that describe how a todolist app functions.
"""
return [
Feature(
FEATURE_NAME="Todolist",
DESCRIPTION="""
In order to remember things
As a forgetful person

Keybase proof

I hereby claim:

  • I am quietguyproductions on github.
  • I am quietguy (https://keybase.io/quietguy) on keybase.
  • I have a public key ASAPzzPITjK9cUUnrEbrvOxIhnGRWe_3l5mKqROpayO9Ago

To claim this, I am signing this object:

def split_on_comma(x):
# replace the code below with code that solves the problem
return x.split(',')