Skip to content

Instantly share code, notes, and snippets.

View quincynyan's full-sized avatar
🎮
Gaming BUSY

Quincy Nyan quincynyan

🎮
Gaming BUSY
View GitHub Profile
@quincynyan
quincynyan / random_lineup_generator.py
Created August 11, 2023 15:08
This Python code generates a random lineup for a football (soccer) team. It defines a formation and player positions, and then assigns players to each position randomly. It also chooses a captain and a manager randomly. Finally, it prints out the lineup and some information about the team.
# import random
# print("You'll have 433 formation")
# ST = ["C.Ronaldo","Benzema","E.Haaland","K.Mbbape","Ronaldo","R.VanPerSie",
# "W.Rooney","C.Tevez","R.Lewondoski","L.Suarez","O.Giroud","S.Aguro"]
# LW = ["Rashford","NeymarJr","VinicusJr","SonHeungMin","JackGrealish","S.Mane",
# "L.Sane","K.Coman","K.Kvaratskhelia","E.Hazard","F.Ribery","P.Foden"]
# RW = ["Antony","L.Messi","M.Salah","A.Robbens","R.Mahrez","A.DiMaria",
@quincynyan
quincynyan / style.css
Last active April 12, 2023 15:38
CSS for Discord mention/tag
/* Use
<span
class="mention wrapper-1ZcZW- interactive"
aria-expanded="false"
role="button"
>
@ExampleUsername
</span>
@quincynyan
quincynyan / anagrams.py
Created January 6, 2023 14:04
Anagrams
test_list = ['lump', 'eat', 'em', 'tea', 'me', 'plum']
for ele in test_list:
num = 0
for ele2 in test_list:
if sorted(ele) == sorted(ele2):
num += 1
print(ele, "has", num, "anagrams")
@quincynyan
quincynyan / node_modules.py
Last active April 27, 2022 02:04
Node Modules Sizer (Node Module file size scanner/calculator)
# import os and shit
import os
# function to make total readable
def readable_size(size):
for x in ['bytes', 'KB', 'MB', 'GB', 'TB']:
if size < 1024.0:
return "%3.1f %s" % (size, x)
@quincynyan
quincynyan / BetterGradientBorder.css
Created March 3, 2022 07:20
Better but worse. Takes up a bit of CPU and makes discord lags a little bit more.
:root {
--thickness: 2px;
--radius: 0px;
--speed: 10s;
--color-1: red;
--color-2: orange;
--color-3: yellow;
--color-4: green;
--color-5: blue;