Skip to content

Instantly share code, notes, and snippets.

View primaryobjects's full-sized avatar

Kory Becker primaryobjects

View GitHub Profile
@primaryobjects
primaryobjects / cardano-crawl.ipynb
Last active January 31, 2026 18:44
Cardano Crawl - A Jupyter notebook to search metadata on the blockchain using interesting common keys.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@primaryobjects
primaryobjects / hello-world.ipynb
Created January 29, 2026 21:50
Save a message on the Cardano blockchain example using Python.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@primaryobjects
primaryobjects / game.js
Created January 18, 2026 23:31
Isometric Maze Walker 2D/3D Game
// Game variables
let scene, camera, renderer, player, coins = [], walls = [], score = 0;
const coinSound = new Audio('assets/coin-sound.wav');
const keys = {};
const textureLoader = new THREE.TextureLoader();
let snowflakes = [];
let controls;
let ground; // Reference to the ground plane
let groundTexture1, groundTexture2; // Global texture references
let playerInitialized = false;
@primaryobjects
primaryobjects / readme.md
Last active January 11, 2026 23:00
Copilot Alternatives for VSCode

GitHub Copilot Alternatives for VSCode

1/10/2026

  • GitHub copilot with Claude Opus 4.5 is best for paid enterprise plans.
  • Copilot with GPT 5 mini next best free, but rate limits.
  • VSCode extension Continue with openrouter and model Grok 4.1 Fast next best as replacement for Copilot but costs $0.10/day and limited to trial of $1 before paying.
  • VSCode extension Continue with openrouter and free model (Devstral 2 2512, Qwen3 Coder 480B A35B, gpt-oss-120b) may be next best.
  • VSCode extension Continue with Ollama service running locally and llama-3.3-70b or codellama is not very good but free for local.
@primaryobjects
primaryobjects / areadme.md
Last active December 7, 2025 16:02
A Batari Basic (Atari 2600) game similar to Berzerk.

Batari Basic (Atari 2600) Game

Run the game using VS Code with the Atari Dev Studio extension. Once compiled to a ROM, run using the Stella emulator.

Animation

@primaryobjects
primaryobjects / readme.md
Last active October 1, 2025 14:48
Sanitize filename in nodejs

https://github.com/parshap/node-sanitize-filename https://www.npmjs.com/package/sanitize-filename https://github.com/minimaxir/big-list-of-naughty-strings https://raw.githubusercontent.com/minimaxir/big-list-of-naughty-strings/refs/heads/master/blns.json

Why this breaks

Most filesystems reject or mishandle special Unicode "noncharacters" like U+FFFE or U+FFFF.

That’s why fs.writeFile can’t even create/open the file—it’s not a valid filename on your system (likely macOS or Linux).

@primaryobjects
primaryobjects / 1-readme.md
Last active August 8, 2025 01:37
I Shall Fear No Evil (Robert A. Heinlein book review) https://jsbin.com/dirirucuha/edit?html,css,output

I Shall Fear No Evil

Book Review

Animation

@primaryobjects
primaryobjects / 1-entanglement.py
Last active August 6, 2025 21:02
Quantum entanglement to display two different characters using Qiskit and Python. Quantum computing.
# Imports
!pip install qiskit
!pip install qiskit-aer
!pip install pylatexenc
# Quantum program
from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit, transpile
from qiskit_aer import Aer
from qiskit.visualization import plot_histogram
import matplotlib.pyplot as plt
@primaryobjects
primaryobjects / 1-programming.md
Last active July 25, 2025 23:55
Programming in Hex Code (Binary) using AI

Programs Written in Hex Code (Binary) with AI

The following programs were created by Claude Sonnet 4 and ChatGPT (Bing) in binary hex codes. The resulting hex codes were copied into HxD and saved to a .exe or .com file. The resulting executable was run in DOSBox.

Quick Start

  1. Install HxD or ImHex.
  2. Install DOSBox.
  3. In HxD or ImHex, select File > New. Then type 00 and delete it. Skip to step 5. You are now ready to enter code.
public class Solution {
public int EvalRPN(string[] tokens) {
char[] operators = { '+', '-', '*', '/' };
Stack<int> operands = new Stack<int>();
foreach (string token in tokens)
{
bool isOperator = token.Length == 1 && token.IndexOfAny(operators) != -1;
if (!isOperator)
{