Skip to content

Instantly share code, notes, and snippets.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 26, 2024 16:29
Complete Recent Discord Quest

Complete Recent Discord Quest

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
  5. Go to the Console tab
  6. Paste the following code and hit enter:
let wpRequire;
@GabrielMMelo
GabrielMMelo / sudo-termux
Created January 22, 2019 12:33
Install sudo in Termux (Android)
apt install git
git clone https://gitlab.com/st42/termux-sudo
cd termux-sudo
cat sudo > /data/data/com.termux/files/usr/bin/sudo
chmod 700 /data/data/com.termux/files/usr/bin/sudo
@Jimmajones
Jimmajones / ShowSkillChecks.py
Last active April 26, 2024 16:29 — forked from Hulzenga/ShowSkillChecks.py
Python script to extract Disco Elysium passive checks, updated for the Final Cut update
import json
import csv
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
'''
Difficulty checks are coded in the following format:
[3]
0 Field data
@vurtun
vurtun / _GJK.md
Last active April 26, 2024 16:26
3D Gilbert–Johnson–Keerthi (GJK) distance algorithm

Gilbert–Johnson–Keerthi (GJK) 3D distance algorithm

The Gilbert–Johnson–Keerthi (GJK) distance algorithm is a method of determining the minimum distance between two convex sets. The algorithm's stability, speed which operates in near-constant time, and small storage footprint make it popular for realtime collision detection.

Unlike many other distance algorithms, it has no requirments on geometry data to be stored in any specific format, but instead relies solely on a support function to iteratively generate closer simplices to the correct answer using the Minkowski sum (CSO) of two convex shapes.

@kerrickstaley
kerrickstaley / parse_serato_crates.py
Created March 22, 2019 17:02
Functions for parsing Serato DJ crates
import struct
def decode_struct(data):
ret = []
i = 0
while i < len(data):
tag = data[i:i+4].decode('ascii')
length = struct.unpack('>I', data[i+4:i+8])[0]
value = data[i+8:i+8+length]
value = decode(value, tag=tag)
@JakubPetriska
JakubPetriska / quotes.csv
Last active April 26, 2024 16:25
Motivational quotes
Author Quote
Thomas Edison Genius is one percent inspiration and ninety-nine percent perspiration.
Yogi Berra You can observe a lot just by watching.
Abraham Lincoln A house divided against itself cannot stand.
Johann Wolfgang von Goethe Difficulties increase the nearer we get to the goal.
Byron Pulsifer Fate is in your hands and no one elses
Lao Tzu Be the chief but never the lord.
Carl Sandburg Nothing happens unless first we dream.
Aristotle Well begun is half done.
Yogi Berra Life is a learning experience, only if you learn.