Skip to content

Instantly share code, notes, and snippets.

View primaryobjects's full-sized avatar

Kory Becker primaryobjects

View GitHub Profile
@primaryobjects
primaryobjects / readme.md
Last active April 26, 2025 18:53
TP Link AX1800 Archer TX20U Plus Settings to Fix Frequent Disconnect of Wifi Hotspot (Xfinity)

How to Fix Frequent Disconnects of the TP Link AX1800 Archer TX20U Plus

If you are experiencing frequent disconnects when using a TP Link AX1800 Archer TX20U Plus Wifi Adapter, especially when connecting to an Xfinity Wifi Hotspot, it may be due to the Roaming Sensitivity Level. The following settings can fix this issue.

TP Link AX1800 Archer TX20U Plus

Quick Start

  1. In Windows, click Start.
// Check if the figure can be placed at a specific row and column
const canPlaceFigure = (figure, field, startRow, startCol) => {
for (let i = 0; i < figure.length; i++) {
for (let j = 0; j < figure[0].length; j++) {
if (figure[i][j] === 1 && field[startRow + i][startCol + j] === 1) {
return false; // Conflict detected
}
}
}
return true; // Placement is possible
<!DOCTYPE html>
<html>
<head>
</head>
<body class="main">
<h1>Frontend Task</h1>
<div>
<div id='left-box'><button id='left' class='btn-box left-shift-button'>&lt;&lt;</button></div>
<div id='division'>
<div class='box'>1</div>
@primaryobjects
primaryobjects / remove-nth-list-node.ts
Created March 23, 2025 20:43
Remove nth node from end of list
/**
* Definition for singly-linked list.
* class ListNode {
* val: number
* next: ListNode | null
* constructor(val?: number, next?: ListNode | null) {
* this.val = (val===undefined ? 0 : val)
* this.next = (next===undefined ? null : next)
* }
* }
@primaryobjects
primaryobjects / quantum-hello-world.ipynb
Created March 16, 2025 21:08
Quantum computing hello world in Python qiskit
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@primaryobjects
primaryobjects / maxProfit.js
Last active March 14, 2025 02:28
Best Time to Buy and Sell Stock https://jsfiddle.net/tg17v03c/
const maxProfit = prices => {
let left = 0;
let right = 1;
let maxProfit = 0;
while (right < prices.length) {
if (prices[left] < prices[right]) {
const profit = prices[right] - prices[left];
maxProfit = Math.max(maxProfit, profit);
}
@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