Skip to content

Instantly share code, notes, and snippets.

View maksiksking's full-sized avatar
🗿
oh no

Задворний Максим Сергійович maksiksking

🗿
oh no
View GitHub Profile
@aamiaa
aamiaa / RevertNewLayout.md
Last active June 16, 2024 08:39
Revert New Discord Layout

The original snippet no longer works!

On 02/09/2024 at around 8pm UTC, Discord flipped an experiment (2023-09_mobile_redesign_override_toggles) which ignores the layout toggle that this script relied on.

If you want to continue using the old layout, you can either use a modded mobile client (such as Vendetta) to disable that experiment, or downgrade to an old version of the app.

Method 1 - Downgrading (Android)

Tip

Use this one if you want a fast, beginner-friendly solution and don't mind using a version from November 2023

  1. Download version 205.15 of Discord mobile app from ApkMirror
@CodeMyUI
CodeMyUI / css-rain-effect.markdown
Created October 24, 2016 06:30
CSS Rain Effect

CSS Rain Effect

Looks best with a taller window/layout.

Rain drop elements animate down the screen, stem element inside animates to disappear toward the end of the drop's fall, splat element animates after the stem disappears.

JavaScript used to randomly position drop elements across the screen, slightly randomize their animation duration and delay, and also stagger their top position. Randomizing delay makes sure the drops don't fall in one sheet, randomizing duration keeps them from falling in the same constant synchronization. Staggering top position makes it so the splats don't fall in a single line.

Splatters are unfortunately disabled by default as it is rather intensive and significantly lowers framerate on most machines (in Chrome that is--FireFox and Edge are smoother actually). You can hit the splat toggle to turn it on. The effect is achieved by putting a dotted border-top on an ellipse element, and animating it from scale(0) to scale(1). You can get a better look at it by enabli

@beefy
beefy / crash.py
Created May 12, 2016 13:55
A small python script that will crash your computer (not tested thoroughly)
import itertools
for a,b,c in itertools.product(itertools.count(0),xrange(0,10),xrange(0,10)):
print a,b,c
if a > 20: break