Skip to content

Instantly share code, notes, and snippets.

View primaryobjects's full-sized avatar

Kory Becker primaryobjects

View GitHub Profile
@primaryobjects
primaryobjects / vite.sh
Created March 7, 2025 04:54
How to create a React app using Vite
npm create vite@latest PROJECT_NAME -- --template react
cd PROJECT_NAME
npm install
npm run dev
const powersOf2 = (numbers: [number]): number => {
let count: number = 0;
const counts = {};
const matches: [ [number] ] = [];
for (let i: number = 0; i<numbers.length; i++) {
const element = numbers[i];
counts[element] = counts[element] ? counts[element] + 1 : 1;
for (let twoPower: number = 0; twoPower < 21; twoPower++) {
@primaryobjects
primaryobjects / 1readme.md
Last active March 1, 2025 03:02
Conway's Game of Life Cellular Automata, 3D in JavaScript with Three.js

Conway's Game of Life

A demo of cellular automata.

cap1a cap2a

@primaryobjects
primaryobjects / index.html
Last active February 20, 2025 18:02
React JSX with Material UI example on JSFiddle https://jsfiddle.net/2fgyL1j9/
<script crossorigin src="https://unpkg.com/react@18/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/@material-ui/core/umd/material-ui.production.min.js" crossorigin="anonymous"></script>
<div id="app"></div>
https://customer-academy.databricks.com/learn/courses/2206/databricks-fundamentals/lessons
100/100
Question 1 of 20
What percentage of global enterprises have adopted the lakehouse architecture according to the document?
50%
Score: 91.5/100
Questions - Page 1 of 1
Question 1 of 20
Which three things should be included as focus areas in a successful data and AI strategy?
A. The future impact of data products.
** B. The people that make up data teams.
@primaryobjects
primaryobjects / romanNumeral.js
Created February 15, 2025 15:41
Convert roman numeral to integer in javascript. https://leetcode.com/problems/roman-to-integer/
function romanToInt(s: string): number {
let result = 0;
const symbols = {
'I': 1,
'V': 5,
'X': 10,
'L': 50,
'C': 100,
'D': 500,
@primaryobjects
primaryobjects / 1-readme.md
Last active January 25, 2025 00:44
Parse NJ/Philadelphia PATCO train timetable schedule and highlight next upcoming stop https://jsbin.com/wukokay/edit?js,output https://output.jsbin.com/wukokay

screenshot

@primaryobjects
primaryobjects / CarPlay.md
Last active December 26, 2024 04:08
How to fix CarPlay skipping spoken content on iPhone audio book

How to fix CarPlay skipping spoken content on iPhone audio book

TL;DR - use an AUX cable.

If you are trying to listen to a book using the iPhone spoken content feature with your car's CarPlay feature, but experiencing lag and broken words, the following steps can be used as a workaround.

Connect an AUX cable from your car to your iPhone and activate spoken content with the book. Your car should automatically switch from Bluetooth/iPhone audio to AUX. You can also manually change your car's audio source to AUX. Now, when you play a book with spoken content (using the aux cable) the lag and skipping should no longer occur.

Cause

@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.