Skip to content

Instantly share code, notes, and snippets.

@kanj
kanj / Plotto_681_Lovecraft.md
Created June 26, 2024 13:58
chatGPT Uses Plotto to Write a HP Lovecraft Pastiche

 I read Dennis Yi Tenen's "Literary Theory for Robots". It gives examples of previous tools for generating texts algorithmacally. Amoung these is "Plotto" written by William W. Cook, released in 1928. It provides a number of short sentences that can be combined to create the skeleton for a story. Can chatGPT write meaningfully from a prompt derived from Plotto. I will use the following:
 Plotto: 681
 A, happy and optimistic, undergoes a critical illness which makes of him a morbid, melancholy, superstitious pessimist

  I create my prompt by replacing the "A" with the character name:
 write a story outline about "Tom , happy and optimistic, undergoes a critical illness which makes of him a morbid, melancholy, superstitious pessimist" in the style of H.P. Lovecraft.
 Title: The Shadows Within

@kanj
kanj / chatGPT_Chooses_Its_Own_Adventure.md
Last active June 27, 2024 12:37
chatGPT Chooses Its Own Adventure

 I ran across a recent "Choose Your Own Adventure" book at a local Little Free Library. I was curious if chatGPT could navigate "branched narative fiction". I used the book I found to make an attempt. With this type of book you often wind up going back to a previous chapter and taking a different branch. I wanted to see if it would remember the available options and if it adjusted to reach a goal.

 My first prompt was to describe how the book was organized and to set the task:
 Kazim Ali's "The Citadel of Whispers" is a `Choose Your Own Adventure Book`. The book has 110 sections. The first time we visit a section I will tell you what sections that you can go to next. I will prompt you to tell me your choice of next section. If you choose to go to a section that is not correct I will send you back to the previous correct section. The goal is to reach section 33. We will start at section 1 and if we reach a dead end you will go back to section 1. Do you understand the task?

@kanj
kanj / ChatGPT_Prompts_For_Statistics.md
Last active June 26, 2024 14:00
chatGPT Prompts for Larry Gonick's "The Cartoon Guide to Statistics"

I enjoy Larry Gonick's Cartoon Guides. A combination of an amazing repertoire of dad jokes with insites into the material expresed graphically. Unfortunately most of them do not have problems or quizzes. I decided to try chatGPT as a way to customize testing my comprehension. I am familiar with the material as I have taken courses in the subject. I wanted to share what I did, the issues I ran into and how I addressed them. Let's get started.

My first prompt was to set up a course outline:
 I am an adult learner and I would like to create a course outline in statistics based on the following headings:
1. What is statistics
2. Data Description
3. Probability
4. Random Variables

@kanj
kanj / build_cross_gcc
Created April 2, 2018 22:30 — forked from preshing/build_cross_gcc
A shell script to download packages for, configure, build and install a GCC cross-compiler.
#! /bin/bash
set -e
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG
trap 'echo FAILED COMMAND: $previous_command' EXIT
#-------------------------------------------------------------------------------------------
# This script will download packages for, configure, build and install a GCC cross-compiler.
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running.
# If you get an error and need to resume the script from some point in the middle,
# just delete/comment the preceding lines before running it again.