This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import math | |
import random | |
import json | |
import datetime | |
import matplotlib.pyplot as P |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" }); |