Skip to content

Instantly share code, notes, and snippets.

View primaryobjects's full-sized avatar

Kory Becker primaryobjects

View GitHub Profile
@primaryobjects
primaryobjects / store.js
Last active March 13, 2025 22:13
Create a class with add, remove, random - technical interview example question https://jsfiddle.net/1jhfvpz5/1/
class Store {
values = [];
indices = {};
constructor() {
this.values = [];
this.indices = {};
}
add(value) {
@primaryobjects
primaryobjects / sumPowerTwo.js
Last active March 12, 2025 20:24
Sum of Power of Twos and Lookup Table CodeSignal question https://codesignal.com/blog/interview-prep/example-codesignal-questions/
const countSumPowerTwo = arr => {
let result = 0;
const hash = {};
// Iterate each number in the array.
for (let i=0; i<arr.length; i++) {
const element = arr[i];
const powerOfTwos = [];
// Increment the count for the occurrence of this element.
function isAcronym(words: string[], s: string): boolean {
let result = true;
let offset = 0;
for (let i=0; i<words.length; i++) {
const word = words[i];
const letter = word[0];
if (s[offset++] !== letter) {
result = false;

Epson Printer WiFi Setup

When your password contains an asterisk.

Quick Start

Use the physical number keypad to the right of the display screen to enter an asterisk.

Detail

function isRectangleOverlap(rec1: number[], rec2: number[]): boolean {
const [ rec1_x1, rec1_y1, rec1_x2, rec1_y2 ] = rec1;
const [ rec2_x1, rec2_y1, rec2_x2, rec2_y2 ] = rec2;
const isOverlapX: boolean = rec1_x1 < rec2_x2 && rec2_x1 < rec1_x2;
const isOverlapY: boolean = rec1_y1 < rec2_y2 && rec2_y1 < rec1_y2;
return isOverlapX && isOverlapY;
};
@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%