Skip to content

Instantly share code, notes, and snippets.

@rndmcnlly
rndmcnlly / Tool Discovery.md
Created December 11, 2023 03:41
ChatGPT learns about my userApi from my profile text, reads the documentation, then puts on a show.

You:

You know about the monkey, right?


ChatGPT:

Yes, I'm aware of the TamperMonkey script you mentioned in your profile. It allows you to execute JavaScript code blocks within ChatGPT conversations. If you have any specific questions or tasks related to using that script or anything else, please feel free to let me know, and I'll do my best to assist you. 🐒

@rndmcnlly
rndmcnlly / Programming as Writing.md
Created December 8, 2023 22:12
ChatGPT translates concepts from writing into the world of programming, a farewell address to my Game Programming Patterns students.

You:

List a bunch of persuasive techniques used in writing.


ChatGPT:

Certainly! Persuasive writing is a key skill in many contexts, whether in academia, advertising, or public speaking. Here's a list of common persuasive techniques:

@rndmcnlly
rndmcnlly / libraries and frameworks.md
Created December 7, 2023 03:34
Thinking through which level of abstraction is right for teaching code quality and software architecture.

You:

In software engineering, libraries are different from frameworks. If those two concepts were placed on a spectrum, what else would be placed on a spectrum and where would they be placed?


ChatGPT:

In software engineering, the concepts of libraries and frameworks represent different levels of control and abstraction in software development. When considering these on a spectrum, we can place other concepts to illustrate varying degrees of control and abstraction:

@rndmcnlly
rndmcnlly / Voice Control Quiz.md
Created November 13, 2023 02:29
Testing out the quiz generator using voice control by taking a quiz about voice control

You:

What can I do?


You:

Hello! I'm Bloom Launcher, your game design and development buddy. I'm here to help you learn about specific topics in game design and development by creating custom quizzes and offering guidance. To start, let's pick a topic you're interested in. Here are a few specific areas we could focus on:

@rndmcnlly
rndmcnlly / Course Design Conversation.md
Created November 9, 2023 19:16
We're chatting about a redesign of the main Game Design Studio course

You:

Outline the CSGD major at UCSC.


ChatGPT:

The Computer Science: Computer Game Design (CSGD) major at the University of California, Santa Cruz (UCSC) is a program blending rigorous computer science and engineering courses with creativity and design. Here's an outline of its key components:

You:

Tell me about my TM script and the monkey button, and how they could help me extend ChatGPT live during a conversation.


ChatGPT:

Your Tampermonkey (TM) script is a user script that you run in your browser. It's designed to enhance and automate interactions with web pages, in this case, ChatGPT. The specific function you've mentioned, handleAssistantMessage(div), is called every time ChatGPT generates a message. The div parameter represents the HTML division element that contains the new message from the assistant.

@rndmcnlly
rndmcnlly / Bloom Ladder Quizzes Development.md
Last active November 9, 2023 01:38
I had a chat with ChatGPT about how to make a quiz for my class, and the scope grew and grew.

You:

What are the important things I should remember about the Flyweight pattern so that I will know how to apply it and evaluate the correctness of the application?


ChatGPT:

The Flyweight pattern is a structural design pattern that is all about using memory efficiently. It's particularly useful when dealing with a large number of objects that have some shared state. Here are the key points to remember about the Flyweight pattern:

@rndmcnlly
rndmcnlly / README.md
Last active September 8, 2022 22:13
NeoFeud on Android

This guide describes how to play NeoFeud by Silver Spook Games on Android devices. These steps should work for almost any other game created in Adventure Game Studio (AGS) as well.

Requirements

Guide

@rndmcnlly
rndmcnlly / interstellar.als
Created September 3, 2022 22:54
Alloy model of space trading simulation game
-- This a mostly-faithful translation of interstellar.lp from https://gist.github.com/rndmcnlly/cc801233012df3cb0883
-- Integer-indexed orbitals were dropped in favor of systems just having a set of planets because the order isn't interesting.
-- This first block of definitions defines the static configuration of the story world.
sig Commodity {}
private enum Equipment { Jumpdrive }
private enum Location { Orbit, Surface }
fun shuttleDestination: Location -> one Location { Orbit -> Surface + Surface -> Orbit }
@rndmcnlly
rndmcnlly / sudoku.als
Created September 2, 2022 20:50
Sudoku solving in Alloy
sig Number {}
sig Group {contains: disj set Number} {
#contains = 3
}
one sig Board {
assign: Number -> Number -> one Number
} {
all n, x: Number | one assign.n & x -> Number
all n, y: Number | one assign.n & Number -> y