Skip to content

Instantly share code, notes, and snippets.

View primaryobjects's full-sized avatar

Kory Becker primaryobjects

View GitHub Profile
@primaryobjects
primaryobjects / 1-exam.md
Last active October 19, 2025 03:29
Oracle Cloud Infrastructure 2024 Generative AI Professional 1Z0-1127-24 Practice Exam Questions https://medium.com/code-like-a-girl/i-passed-the-oracle-generative-ai-professional-exam-heres-what-i-learned-bdf28be53864

How are documents usually evaluated in the simplest form of keyword-based search? According to the length of the documents Based on the number of images and videos contained in the documents By the complexity of language used in the documents ** Based on the presence and frequency of the user-provided keywords

When is fine-tuning an appropriate method for customizing a Large Language Model (LLM)? When you want to optimize the model without any instructions When the LLM requires access to the latest data for generating outputs ** When the LLM does not perform well on a task and the data for prompt engineering is too large

@primaryobjects
primaryobjects / index.html
Last active May 19, 2024 23:20
Gauntlet-like game created with ChatGPT4o using HTML and Javascript https://jsbin.com/ketusuveve/1/edit?js,output
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gauntlet-like Game</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<canvas id="gameCanvas" width="800" height="600"></canvas>
@primaryobjects
primaryobjects / Readme.md
Created May 17, 2024 21:29
How to fix: PayPal IPN 403 Error

PayPal IPN 403 Error

Solution

Disable ModSecurity in cpanel.

What is it?

HTTP 403 is an HTTP status code meaning access to the requested resource is forbidden. The server understood the request, but will not fulfill it, if it was correct.

@primaryobjects
primaryobjects / ff2-utility.au3
Last active February 25, 2024 21:28
Automatic Level 16 Spells in Final Fantasy II using Emulator for PS1
#include <Constants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$count = 125
$label = 0
$button = 0
Func _WriteErrorLog($ErrorMessage)
FileWriteLine(@ScriptDir & "\" & @ScriptName & ".log", @HOUR & ":" & @MIN & ":" & @SEC & ": " & $ErrorMessage)
@primaryobjects
primaryobjects / autility.au3
Last active February 20, 2024 20:43
AutoIt utility for easier SendKey, commands. Automate Final Fantasy II 2 level-up, ff2
#include <Constants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$count = 125
$label = 0
$button = 0
Func _WriteErrorLog($ErrorMessage)
FileWriteLine(@ScriptDir & "\" & @ScriptName & ".log", @HOUR & ":" & @MIN & ":" & @SEC & ": " & $ErrorMessage)
@primaryobjects
primaryobjects / HomeController.cs
Created January 29, 2024 04:18
Example of reversing a linked list in ASP .NET MVC.
using System.Diagnostics;
using Microsoft.AspNetCore.Mvc;
using ReverseLinkedListApp.Models;
namespace ReverseLinkedListApp.Controllers;
public class HomeController : Controller
{
private readonly ILogger<HomeController> _logger;
@primaryobjects
primaryobjects / content.js
Last active July 25, 2024 08:38
How to download multiple files and images in a Chrome extension.
// in your extension's background script
chrome.browserAction.onClicked.addListener(function(tab) {
// inject the content script to the current tab
chrome.tabs.executeScript(tab.id, {file: 'content.js'});
});
// listen for messages from the content script
chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) {
if (message.action == 'getImages') {
// message.data is an array of image urls
/**
* const PriorityQueue = require('priority-queue-js');
*/
class Solution {
/**
* @param {number} n
* @param {number[][]} edges
* @param {number} src
* @returns {Object}
@primaryobjects
primaryobjects / insertionSort.py
Last active December 28, 2023 16:56
Insertion sort in Python with list history. https://neetcode.io/problems/insertionSort
from typing import List
from collections import namedtuple
Pair = namedtuple('Pair', ['key', 'value'])
# Definition for a pair.
# class Pair:
# def __init__(self, key: int, value: str):
# self.key = key
# self.value = value
class Node {
constructor(value, next) {
this.value = value;
this.next = next;
}
}
class LinkedList {
constructor() {
this.head = null;