Skip to content

Instantly share code, notes, and snippets.

View xlash123's full-sized avatar

Noah xlash123

  • Florida, US of the A
View GitHub Profile
@xlash123
xlash123 / estimator.js
Created May 13, 2019 22:22
Focus Grade Estimator
function getLetterGrade(grade){
if(grade>=90) return 'A';
else if(grade>=80) return 'B';
else if(grade>=70) return 'C';
else if(grade>=60) return 'D';
else return 'F';
}
const getById = id => document.getElementById(id);
const table = getById('center_table');
@xlash123
xlash123 / zoom-scroll.js
Last active September 3, 2020 00:00
Zoom Recording Playback Auto-Scroll Chat
// Set this to the number of seconds off that the chat is from the video
var chatOffset = 0;
const vid = $('video');
const chat = $('.zm-scrollbar__view ul');
const messages = chat.querySelectorAll('li .chat-time');
let lastTime = undefined;
function pad(num) {
return String(num).padStart(2, '0');
@xlash123
xlash123 / kh-1-5.sh
Last active January 4, 2024 17:00
Launch Kingdom Hearts 1.5+2.5 on Linux using Legendary and Heroic Games Launcher
#!/bin/sh
# This script requires that you set certain variables before running it.
# After that, you can just run the command and the game will launch!
# Instructions can be found at https://github.com/FlaareZero/Kingdom_Hearts_Collection_Linux/issues/2#issuecomment-890655837
# STEP 1: Environment variables from Heroic
HEROIC_ENV="" # Paste in the quotes
# STEP 2: Wine command from Heroic