Skip to content

Instantly share code, notes, and snippets.

View primaryobjects's full-sized avatar

Kory Becker primaryobjects

View GitHub Profile
@primaryobjects
primaryobjects / 1-rational.md
Last active June 1, 2023 22:08
Rational, Natural, and Open Systems in organizations

In the context of an organization such as a legal company, a rational system would be one that operates based on formal rules and procedures. The company would have a well-defined hierarchy and chain of command, with clear lines of authority and responsibility. Decision-making would be centralized, with top management making most of the important decisions. The company would have specific goals and objectives, and its operations would be designed to achieve these goals in the most efficient and effective manner possible. Employees would have clearly defined roles and responsibilities, and their performance would be evaluated based on their ability to meet specific targets and objectives. The company would also have formal systems in place for monitoring and controlling its operations, to ensure that it is achieving its goals and operating within legal and ethical boundaries. Would you like to know more about how a rational system might operate in a legal company?

<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Polynomial Solver Game</title>
<style>
body {
font-family: 'Arial', sans-serif;
}
@primaryobjects
primaryobjects / index.html
Last active April 18, 2023 02:13
Convert csv file to markdown using contents of each row.
<!doctype html>
<html>
<head>
<title>CSV to Markdown Converter</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h1 class="my-3">CSV to Markdown Converter</h1>
<form method="post" enctype="multipart/form-data">
@primaryobjects
primaryobjects / chatgpt4.txt
Last active April 18, 2023 02:11
The Sussman Anomaly attempt with ChatGPT4. It was unsuccessful in solving.
Welcome back! What would you like to chat about?
Received message.
three blocks (labeled A, B, and C) rest on a table. The agent must stack the blocks such that A is atop B, which in turn is atop C. However, it may only move one block at a time. The problem starts with B on the table, C atop A, and A on the table
Sent message. three blocks (labeled A, B, and C) rest on a table. The agent must stack the blocks such that A is atop B, which in turn is atop C. However, it may only move one block at a time. The problem starts with B on the table, C atop A, and A on the table
It sounds like you’re describing a problem that can be solved using the Tower of Hanoi algorithm. The goal is to move all the blocks from their initial positions to a final configuration where block A is on top of block B, and block B is on top of block C. Is that correct?
Received message. It sounds like you're describing a problem that can be solved using the Tower of Hanoi algorithm. The goal is to move all the blocks from their initial po
@primaryobjects
primaryobjects / vowel_guessing_game.html
Last active April 14, 2023 00:18
Vowel guessing game created by AutoGPT and ChatGPT4.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Guessing Game</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
@primaryobjects
primaryobjects / output.txt
Created April 13, 2023 02:51
Tic Tac Toe game created by AutoGPT in under 5 minutes.
$ python3 tictactoe.py
- - -
- - -
- - -
Enter row and column (1-3): 3 2
- - -
- - -
- X -
- - -
- - -
@primaryobjects
primaryobjects / readme.md
Last active April 20, 2024 12:11
How to Configure AutoGPT with Azure OpenAI Active Directory Managed Identity

How to Configure AutoGPT with Azure OpenAI Active Directory Managed Identity

AutoGPT is an extension of ChatGPT to automatically run an agent to complete a solution without human intervention.

Normally, an OpenAI API key is used.

For Azure OpenAI, you must use either an API token or an Azure Active Directory account.

Loading an API Key with Azure Managed Identity

@primaryobjects
primaryobjects / app.py
Created April 11, 2023 02:15
Quantum Invaders, quantum computing game developed with ChatGPT4 and qiskit.
import pygame
from qiskit import QuantumCircuit, execute, Aer
import random
import math
# Set up the game window
pygame.init()
screen = pygame.display.set_mode((640, 480))
pygame.display.set_caption("Quantum Game")
@primaryobjects
primaryobjects / index.html
Last active December 9, 2023 02:45
Creating a random 3D maze with WebGL and three.js along with ChatGPT4 on Bing https://3D-Maze.primaryobjects.repl.co
<!DOCTYPE html>
<html>
<head>
<title>3D Maze with GPT4</title>
<link rel="stylesheet" href="style.css">
<script src="https://code.jquery.com/jquery-3.6.4.slim.min.js" integrity="sha256-a2yjHM4jnF9f54xUQakjZGaqYs/V1CYvWpoqZzC2/Bw=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gl-matrix/2.8.1/gl-matrix-min.js"></script>
<script src="script.js"></script>
</head>
@primaryobjects
primaryobjects / genetic.py
Created March 20, 2023 03:10
Genetic algorithm for generating a program in BF to output a target string. Created with the help of ChatGPT. https://replit.com/@primaryobjects/Genetic-Algorithm-BF
import random
import string
TARGET = "hello"
POPULATION_SIZE = 100
GENOME_SIZE = 50
MUTATION_RATE = 0.01
MEMORY_SIZE = 255
MAX_TICKS = 1000
MAX_EPOCHS = 100000