Skip to content

Instantly share code, notes, and snippets.

View primaryobjects's full-sized avatar

Kory Becker primaryobjects

View GitHub Profile
@primaryobjects
primaryobjects / app.js
Last active March 13, 2023 21:24
A chatbot that speaks, created by pair-programming with ChatGPT.
const readline = require('readline');
const say = require('say');
const responses = [
{ keyword: 'hello', message: 'Hi there, how can I help you?' },
{ keyword: 'hi', message: 'Hey, what\'s up?' },
{ keyword: 'hey', message: 'Hi! How are you doing today?' },
{ keyword: 'good morning', message: 'Good morning! How can I assist you today?' },
{ keyword: 'good afternoon', message: 'Good afternoon! What brings you here?' },
{ keyword: 'good evening', message: 'Good evening! Is there anything I can help you with?' },
@primaryobjects
primaryobjects / app.js
Created March 13, 2023 03:00
Text to speech app created with ChatGPT. https://youtu.be/esq7vHKzwKA
const fs = require('fs');
const say = require('say');
// Read command line arguments
const args = process.argv.slice(2);
const fileName = args[0];
// Read the file contents
fs.readFile(fileName, 'utf8', (err, data) => {
if (err) throw err;
@primaryobjects
primaryobjects / hotspot.txt
Last active March 6, 2023 15:40
Windows 10 mobile hotspot shortcut
C:\Windows\explorer.exe ms-settings:network-mobilehotspot
@primaryobjects
primaryobjects / superposition.ipynb
Last active April 10, 2023 02:01
Super Duper Quantum Computer: Superposition. Learn how to partially invert a qubit and draw a unicorn or gremlin from the measured values!
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@primaryobjects
primaryobjects / rock-paper-scissors.ipynb
Last active November 16, 2024 11:21
Quantum Rock Paper Scissors
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@primaryobjects
primaryobjects / data.dat
Last active February 25, 2023 02:35
How to protect a JavaScript file with encryption. https://jsfiddle.net/yo0dvrjt/2/
U2FsdGVkX1/7DNglflcflNX1NepqxK7hBWR8E7BW3ZYSrQ4a7/EuyFNJe2mVXZqb63/Ln0Jf93I+ZX3h7oT1ew==
@primaryobjects
primaryobjects / qgreeting.ipynb
Last active February 22, 2023 17:53
An example of a greeting program in quantum computing using Qiskit. Three methods: classical, superposition random greetings, superimposed greetings, and majority vote. ❤️ Sponsor me :) https://github.com/sponsors/primaryobjects
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@primaryobjects
primaryobjects / app.py
Created February 12, 2023 02:40
Example of a simple game with smooth keyboard movement of a ball around the screen. Uses pygame and Python.
import pygame
# Initialize pygame
pygame.init()
# Define colors
black = (0, 0, 0)
# Set the height and width of the screen
size=[800, 600]
@primaryobjects
primaryobjects / random.ipynb
Last active February 22, 2023 17:53
Quantum Computing Random Number Generation. Uses superposition, noise gates. Create a magic number guessing game. ❤️ Sponsor me :) https://github.com/sponsors/primaryobjects
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@primaryobjects
primaryobjects / deutsch-jozsa.ipynb
Last active February 13, 2023 20:47
The Enhanced Deutsch Jozsa Quantum Algorithm
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.