Skip to content

Instantly share code, notes, and snippets.

View IshanJ25's full-sized avatar
💾
Ctrl + S

Ishan Jindal IshanJ25

💾
Ctrl + S
View GitHub Profile
import time
import csv
import random
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
from webdriver_manager.chrome import ChromeDriverManager

Chef's Chaotic Cookbook

Chef is known for his innovative and unconventional cooking techniques. He believes that the secret to creating the most delicious dishes lies in the chaos of his ingredients. To test this theory, he devised a peculiar way of arranging his cookbook.

Problem Statement

Chef has N recipes, each assigned a unique "deliciousness score" from 1 to 10^9. He wants to arrange these recipes in his cookbook to maximize what he calls the "Chaotic Deliciousness Density."

A chaotic pair in the cookbook is any pair of recipes where a less delicious recipe appears after a more delicious one. The Chaotic Deliciousness Density is calculated as the ratio of the number of chaotic pairs to the total number of recipes in the arrangement.

Chef wants to find the longest possible arrangement of recipes that maximizes the Chaotic Deliciousness Density. He believes this will lead to the most innovative and delicious meal combinations.

@IshanJ25
IshanJ25 / colorspace_v2.py
Last active March 15, 2023 04:54
Power up your color-space (literally) with this new thought experiment: Darkness change is more perceivable to human eyes than lightness change... Maybe use that to our advantage to make a well-defined color-space... And the awesome thing is, one simple set of few carefully selected values ranging from 0-255 works well on 6-bit and 24-bit displa…
power = 1.732
points = 10
for i in range(points):
print(round(((i/(points-1))**power)*255))
# Example graph: https://www.desmos.com/calculator/x5sgxecs9b
@IshanJ25
IshanJ25 / L1TT3_B1TCH.txt
Created December 30, 2022 12:44
A message to the world about "someone" who cheats
Boolean is "Binary" you got one and zero
Go once more, you're a super, super hero
Honeybees build hives, wonder what it is
A "Hex" thing u say? Once again for this
Everytime you translate the message, plz
Convert to ascii, know this sick disease
Here you go...
00110000 00110000 00110001 00110001 00110000 00110000 00110001 00110001 00100000 00110000 00110000 00110001 00110001 00110000 00110001 00110000 00110000 00100000 00110000 00110000 00110001 00110000 00110000 00110000 00110000 00110000 00100000 00110000 00110000 00110001 00110001 00110000 00110001 00110000 00110000 00100000 00110000 00110000 00110001 00110001 00110000 00110000 00110000 00110001 00100000 00110000 00110000 00110001 00110000 00110000 00110000 00110000 00110000 00100000 00110000 00110000 00110001 00110001 00110000 00110000 00110001 00110000 00100000 00110000 00110000 00110001 00110001 00110000 00110000 00110000 00110000 00100000 00110000 00110000 00110001 00110000 00110000 00110000 00110000 00110000 00100000 00110000 00110000 00110001 00110