Skip to content

Instantly share code, notes, and snippets.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active February 22, 2026 20:39
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under the Quests tab
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@kingardor
kingardor / tkinter-webcam.py
Last active May 6, 2021 22:09
To display Webcam in a tkinter display box
import PIL
from PIL import Image,ImageTk
import pytesseract
import cv2
from tkinter import *
width, height = 1920, 1080
cap = cv2.VideoCapture(0)
cap.set(cv2.CAP_PROP_FRAME_WIDTH, width)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, height)
@audreybongalon
audreybongalon / atan2-function-for-scratch.js
Last active February 14, 2026 03:49
reference for scratch games. scratch doesn't have an atan2 function, which is very useful for calculating directions (in terms of angles). so i made a reference file here. keep in mind that scratch automatically puts things in degrees, so there's no need to have a conversion function in scratch. also, sometimes this will return values 360 degree…
function toDegrees (angle) {
return angle * (180 / Math.PI);
}
function myAtan2(y, x) {
if (x > 0) {
return toDegrees(Math.atan(y/x));
}
else if (x < 0) {
return (180 + toDegrees(Math.atan(y/x)));