Skip to content

Instantly share code, notes, and snippets.

View Ceiridge's full-sized avatar

Philipp Paul G Ceiridge

View GitHub Profile
@JcBernack
JcBernack / BigDecimal.cs
Last active September 14, 2024 17:18
BigDecimal
using System;
using System.Numerics;
namespace Common
{
/// <summary>
/// Arbitrary precision decimal.
/// All operations are exact, except for division. Division never determines more digits than the given precision.
/// Source: https://gist.github.com/JcBernack/0b4eef59ca97ee931a2f45542b9ff06d
/// Based on https://stackoverflow.com/a/4524254
@RobertAKARobin
RobertAKARobin / python.md
Last active October 12, 2024 17:37
Python Is Not A Great Programming Language
@Ceiridge
Ceiridge / userscript.js
Last active June 25, 2020 18:50
CollabVM Improver - Ceiridge's Userscript
// ==UserScript==
// @name CollabVM Autoscroll and CSS
// @namespace Ceiridge
// @version 1.0
// @description AutoScroll for CollabVM chat and CSS
// @author Ceiridge
// @match *://computernewb.com/collab-vm*
// @grant none
// @run-at document-end
// ==/UserScript==
@Ceiridge
Ceiridge / logNativeJavaScriptFunctions.js
Last active August 18, 2022 05:40
Log/Hook all native JavaScript functions recursively
// This hooks all functions recursively from window to log all native JavaScript functions
// The best way to use this is to inject this script at document-start via TamperMonkey.
// Default ignores (should be most likely extended):
window.__IGNORE_CALLTREE = new Set(["::requestAnimationFrame", "::getComputedStyle", "document::getElementsByTagName", "::setTimeout", "::clearTimeout", "document::getElementById", "Math::random", "Element.prototype::getAttribute", "::parseFloat", "::parseInt", "CSSStyleDeclaration.prototype::getPropertyValue"]);
(function () {
// You can ignore methods the following way:
// window.__IGNORE_CALLTREE = new Set();
// window.__IGNORE_CALLTREE.add("document::yourMethod");