Skip to content

Instantly share code, notes, and snippets.

View Element118's full-sized avatar

Element118

View GitHub Profile
@Element118
Element118 / gist:41693ef27e066f5b9c600b91a757513d
Created July 24, 2023 02:13
Add Button to Youtube Shorts - Change to Video
// ==UserScript==
// @name Change to Video
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.youtube.com/shorts/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// ==/UserScript==
3468097888158339286797581652104954628434169971646694834457
5740491169235500000000000000000000000016257844050371986300000000000000000000000152249989844493
2526917549762010000000000000000000000000000000290297322235400000000000000000000000000000000000016209273
11308531989883802855740417639296597157358701262094887686268546000004518870956460903356659175355091631086595730223793945329332275541
796018358038625089397035821960703304281255001854941635660031113753358739833013545239708959948643647228279611735139330717745407726098426563313225291012804831043589582529467061381262644284793109729694162516666106710426910719107765594044813240940527516877291
// ==UserScript==
// @name dunjudge time sorting
// @namespace dunjudgeTimeSort
// @version 1.0
// @description Sorting submissions by time
// @author Element118
// @match https://dunjudge.me/analysis/problems/*/
// @grant none
// ==/UserScript==
@Element118
Element118 / SST.js
Last active March 21, 2020 10:11
Singapore Sightread Tournament Point Counter
// ==UserScript==
// @name SST counter
// @namespace http://tampermonkey.net/
// @version 1.2
// @description Point counter for Singapore Sightread Tournament
// @author Element118
// @match https://osu.ppy.sh/community/matches/*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Video Speedups
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Speed up videos with a few convenient buttons!
// @author Element118
// @match https://www.youtube.com/watch?v=*
// @match https://www.facebook.com/*
// @grant none
// ==/UserScript==
<!DOCTYPE html>
<html>
<head>
<title>Prime Checking</title>
<script>
/**
* BigInteger
* Uses 32768's complement
*
* Why 32768?
@Element118
Element118 / primefinding.js
Created April 2, 2017 08:00
Prime Finding
/**
* BigInteger
* Uses 32768's complement
*
* Why 32768?
* It is a power of 2 (2^15), and when multiplied by itself, it is less than 2^31-1.
*
* Guarantee: At least 1 digit
* Begin with 32767: negative
* Begin with 0: positive
@Element118
Element118 / stdc++.h
Last active January 29, 2016 08:36 — forked from velicast/stdc++.h
Linux GCC 4.8.0 /bits/stdc++.h header definition.
// C++ includes used for precompiling -*- C++ -*-
// Copyright (C) 2003-2013 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.