Skip to content

Instantly share code, notes, and snippets.

View lyellick's full-sized avatar

Lincoln Hach Yellick lyellick

View GitHub Profile
@lyellick
lyellick / hudu-kb-exploder.js
Last active December 12, 2023 17:55
Hudu KB Exploder
const key = ""; // Your Hudu API Key
const wrapper = document.getElementsByClassName("index__folders")[0];
const params = new URLSearchParams(window.location.search);
const companyIdParam = params.get('company_id');
const folderParam = params.get('folder');
if (companyIdParam && folderParam === null && location.pathname === "/kba") {
await showTree(companyIdParam);
}
@lyellick
lyellick / microsoft-practice-exam-choice-randomizer.js
Last active October 14, 2023 01:42
Microsoft Practice Exam Choice Randomizer
// What this does:
// - Shuffles the first question's quiz answers.
// - Adds a listener to the next question button and executed the shuffle code after 2 seconds.
shuffleQuizChoices()
document.getElementById("next-button").addEventListener("click", function () {
setTimeout(shuffleQuizChoices, 2000);
});
function shuffleQuizChoices() {
@lyellick
lyellick / TheGreatFilterReport.py
Last active December 3, 2022 03:58
🎄 Advent of Code - /g/ The Great Filter
#!/usr/bin/env python3
import sys
import math
import random
import json
import datetime
import matplotlib.pyplot as P
@lyellick
lyellick / WebNFC.js
Last active September 5, 2023 23:45
WebNFC JavaScript Class Wrapper
class WebNFC {
constructor(scan) {
this.scan = scan;
}
async read(read) {
if ('NDEFReader' in window) {
const reader = new NDEFReader();
const abortController = new AbortController();
const permissionStatus = await navigator.permissions.query({ name: "nfc" });