Skip to content

Instantly share code, notes, and snippets.

View primaryobjects's full-sized avatar

Kory Becker primaryobjects

View GitHub Profile
@primaryobjects
primaryobjects / generative-cardano.ipynb
Created December 21, 2024 22:38
Generating beautiful images from the Cardano blockchain using AI LLM and prompt engineering.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@primaryobjects
primaryobjects / Lavos.md
Created December 16, 2024 21:46
Lavos Strategy - Chronotrigger Final Battle

Lavos Strategy - Chronotrigger Final Battle

Summary: Team Chrono, Ayla, Marle. Boost Magic def as much as possible before right. When battle says "defense is down" attack the right-most pod. Otherwise, attack the left-most pod, then center enemy.

Ayla, Chrono, and Marle. Use Marle to pretty much use Haste and heal exclusively. The Chrono/Ayla double tech "Falcon Hit" and "Volt Bite" work well. Otherwise, use Chrono Spin-slash and Ayla Triple Kick.

EQUIPMENT: First, give Marle your best defensive armor, she will be your life line. Remember only one piece has to have status immunity to revive the buff but it will be overridden. Prioritize Marles Physical DEF as she has decent Mag Def. I would recommend Haste Helm, Prism Dress, and a silver stud(gold if you have 2). Ayla is the opposite, boost her Mag Def and she will be nearly indestructible. Give her the her Prism Helm, Prism Dress (charm Zeal Right hand in Omen before Lavos), Prism Specs (gold stud is good Alt) and she will brutalize the glorified spa

@primaryobjects
primaryobjects / hotspot-keepalive.bat
Last active December 16, 2024 13:29
Enable Windows 10 Mobile Hotspot with Toggle Wi-Fi Adapter
PowerShell -Command "Set-ExecutionPolicy Unrestricted" >> "%TEMP%\StartupLog.txt" 2>&1
PowerShell C:\Users\YOUR_USERNAME\Desktop\hotspot-keepalive.ps1 >> "%TEMP%\StartupLog.txt" 2>&1
@primaryobjects
primaryobjects / readme.md
Last active December 8, 2024 06:07
How to change screen resolution for Retro Pi 5 and Emulation Station SNES, NES for 4K TV

How to change screen resolution for Retro Pi 5 and Emulation Station SNES for 4K TV

Simple steps to fix problems with resolution with a Pi 5, RetroPi, Emulation Station, in Ubuntu.

The Problem with 4K Displays and Retro Games

Retro games were not designed to run on 4K displays. This can cause games to run excessively slow.

Symptoms may include:

@primaryobjects
primaryobjects / view.html
Last active September 17, 2024 00:58
Jinja syntax to add a new property to sort a list by
{% set updated_users = [] %}
{% for user in all_users %}
{% set names = user.full_name.split() %}
{% set first_name = names[0] %}
{% set last_name = names[1:] | join(' ') %}
{% set updated_user = user.copy() %}
{% set _ = updated_user.update({'first_name': first_name, 'last_name': last_name}) %}
{% set _ = updated_users.append(updated_user) %}
{% endfor %}
@primaryobjects
primaryobjects / fullscreen.md
Created July 30, 2024 03:57
How to enable full screen in RetroPi RetroArch on Ubuntu 23

How to enable fullscreen mode in RetroPi/RetroArch

The following steps allow hiding all top menu bars, allowing fullscreen mode for games running in RetroArch (including nes/snes).

Ubuntu 23 / Gnome 45

  1. Download Hide Top Bar from the Gnome Extensions Store.
  2. Download latest version of Unite-shell.
  3. Extract unite-shell to ~/.local/share/gnome-shell/extensions
@primaryobjects
primaryobjects / twoSum.py
Created July 15, 2024 21:31
Two Sum solved in Python using brute force and hash map https://leetcode.com/problems/two-sum/
class Solution:
def twoSum1(self, nums: List[int], target: int) -> List[int]:
# O(n^2)
for i in range(len(nums)):
for j in range(i+1, len(nums)):
if target - nums[i] == nums[j]:
return [i, j]
return None
@primaryobjects
primaryobjects / ml.py
Created July 15, 2024 02:22
Machine learning tutorial with confusion matrix calculations in Python https://replit.com/@primaryobjects/MachineLearning
# make predictions
from pandas import read_csv
from sklearn.metrics import accuracy_score, classification_report, confusion_matrix
from sklearn.model_selection import train_test_split
from sklearn.svm import SVC
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
# Load dataset
from __future__ import annotations
class Node:
value = None
next = None
def __init__(self, value: int, next: Node = None):
self.value = value
self.next = next
@primaryobjects
primaryobjects / exam.txt
Last active July 8, 2024 20:36
Get Started with Data Engineering on Databricks certification exam https://www.databricks.com/learn/training/getting-started-with-data-engineering
1)
Which statement describes the Databricks workspace?
** It is a solution for organizing assets within Databricks.
It is a classroom setup for running Databricks lessons and exercises.
It is a set of predefined tables and path variables within Databricks.
It is a mechanism for cleaning up lesson-specific assets created during a learning session.
Score: 10.00