Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name YouTube Filter
// @namespace sadEmoji
// @author sadEmoji
// @description Filters YouTube Videos (only works on firefox)
// @include https://www.youtube.com/results?search_query=*
// @version 1.2.3
// @grant none
// @require https://code.jquery.com/jquery-2.1.4.min.js
// ==/UserScript==
// ==UserScript==
// @name Loop
// @namespace dumptyd
// @description Adds a loop button on YouTube videos
// @include https://www.youtube.com/watch?v=*
// @version 1.5.5
// @grant none
// @require https://code.jquery.com/jquery-2.1.4.min.js
// ==/UserScript==
// ==UserScript==
// @name MFP Liker
// @namespace dumptyd
// @author sadEmoji
// @description Likes every post, because why not?
// @include *://*.myfitnesspal.com/
// @version 2.1
// @grant GM_log
// @require https://code.jquery.com/jquery-2.1.4.min.js
// ==/UserScript==
@dumptyd
dumptyd / gist:a52216839e2234c49346eaf745dd3283
Created August 4, 2017 10:55
Understanding scientific notation
Let's consider one case: 2.9979e8
- take the number before "E/e/10" -> 2.9979
- take the number after "E/e/10" -> 8
- Calc the "factor" : If number *after* E is +ve, Multiply, else divide 1 by 1 followed by that many number of zeros.
So -> 1 * 1 00 000 000
- Multiply number *before* E by factor -> 2.9979 * ( 1 * 1 00 000 000) -> 299790000
@dumptyd
dumptyd / The Technical Interview Cheat Sheet.md
Last active May 20, 2018 07:16 — forked from avinassh/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.