Skip to content

Instantly share code, notes, and snippets.

@fidel-perez
fidel-perez / gist:e84baad66d0f8c51e5a9d69f7ccaffb5
Last active May 19, 2025 10:06
Melvor idle beep on different conditions, items gathered, produced, mobs killed, etc.
// ==UserScript==
// @name Melvor Idle Success Beep & Tracking
// @namespace http://tampermonkey.net/
// @version 0.9.6
// @description ETA for tracked gains & inventory totals. Beeps for targets/idle. UI enhancements & bug fixes.
// @author Gemini & User
// @match https://melvoridle.com/index_game.php
// @match https://*.melvoridle.com/index_game.php
// @grant none
// @run-at document-idle
@fidel-perez
fidel-perez / speedreading.js
Last active March 27, 2025 03:22
Speed reading for Obsidian!
const carriageReturnIndicator = "⏭️"; //WARNING: There is a regexp replace that uses this literal value.
const spaceReplacerChar = " "; // ◽
const pluginClassName = "speedReadingPlugin";
function updateReadTimeEstimate(phrases, speedWPM) {
var readTimeEstimateEl = document.getElementById("readTimeEstimate");
readTimeEstimateEl.innerText =
"Expected time to read the whole document at current speed: " +
((phrases.length * 60000) / speedWPM / 1000 / 60).toFixed(1) +
"min.";
@fidel-perez
fidel-perez / The Technical Interview Cheat Sheet.md
Created June 26, 2018 17:38 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.