This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
m = sys.argv[1] | |
s = sys.argv[2] | |
key = "wordle" | |
if m == "e": | |
print("".join([ chr(((ord(x) - 97) + (ord(key[i % 6]) - 97)) % 26 + 97) for i, x in enumerate(s)])) | |
elif m == "d": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# python3 -m pip install git+https://github.com/pytube/pytube | |
import sys | |
from pytube import YouTube, Playlist | |
if __name__ == "__main__": | |
path = "./files" | |
if len(sys.argv) < 2: | |
link = input("Enter link of video or playlist: ") | |
else: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import winsound | |
import keyboard | |
import time | |
try: | |
tick = time.time() - 59 | |
count = 0 | |
while True: | |
if time.time() - tick >= 60: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git init | |
git add -A | |
git commit -m "Added initial project files" | |
git branch -M main | |
git remote add origin [email protected]:user/new-project.git | |
git push -u -f origin main | |
# if required: | |
git pull origin main --allow-unrelated-histories |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyautogui | |
TOTAL_CLICKS = 10000 | |
pyautogui.PAUSE = 0.045 | |
for i in range(TOTAL_CLICKS): | |
pyautogui.click() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyautogui | |
# Wiggles starting from the location of mouse when executing | |
click = True | |
while True: | |
pyautogui.moveRel(0, 50, duration=1) | |
if click: | |
pyautogui.click() | |
pyautogui.moveRel(0, -50, duration=1) | |
if click: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
curl parrot.live | |
@echo on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Description | |
--------------------------------------- | |
Substitution encryption algorithm to demonstrate the enigma cipher using | |
code-golf coding strategies to write the program. | |
Supports: | |
--------------------------------------- | |
(i) Generating keys | |
(ii) Encryption |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd path/to/directory | |
git remote rename origin bitbucket | |
git remote add origin https://github.com/username/repositoryname.git | |
git push origin master | |
git remote rm bitbucket |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JAVA code | |
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // Already there | |
frame.setExtendedState(JFrame.MAXIMIZED_BOTH); | |
frame.setUndecorated(true); |