Skip to content

Instantly share code, notes, and snippets.

View Airbus-A330's full-sized avatar
💀
Debugging...

Airbus A330-200 Airbus-A330

💀
Debugging...
View GitHub Profile
@Airbus-A330
Airbus-A330 / pi.js
Created April 23, 2023 04:38
Taylor Series Approximation for Pi
const pi = (iterations=10_000_000) => {
let π = 0.0;
for (let i = 0; i < iterations; i++) {
let numerator = parseFloat(Math.pow(-1, i + 1));
let denominator = parseFloat(((2 * i) + 1));
π += parseFloat(numerator / denominator);
}
@Airbus-A330
Airbus-A330 / anti-shorts.js
Created August 12, 2022 20:01
Tired of YouTube shorts? This will transform any YouTube short into a normal video. Paste this in Tampermonkey/Greasemonkey.
// ==UserScript==
// @name Anti-Shorts
// @namespace http://tampermonkey.net/
// @version 0.0.1
// @description Tired of YouTube shorts? We are too! Transform any YouTube short into a normal video.
// @author Airbus-A330
// @match *.youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// ==/UserScript==