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
from pynput.mouse import Button, Controller | |
import time | |
def main() -> None: | |
mouse = Controller() | |
mouse.press(Button.left) | |
print("Left mouse button pressed.") | |
time.sleep(12) |
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 requests | |
import re | |
import sys | |
words_list = [] | |
results = [] | |
urls = []#['https://www.bestwordlist.com/5letterwords.htm'] | |
for i in range (2, 27): # answer is in page 8 |
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 requests | |
import re | |
import sys | |
skip = 'EJZW' | |
words_list = [] | |
results = [] | |
urls = ['https://www.bestwordlist.com/p/s/1/words7letterssixthletters.htm', |
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
comb_dict = { | |
0 : '(none)', | |
1 : 'A', | |
2 : 'B', | |
3 : 'C', | |
4 : 'D', | |
5 : 'E', | |
6 : 'AB', | |
7 : 'AC', | |
8 : 'AD', |
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
timedatectl set-local-rtc 1 --adjust-system-clock |
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 requests | |
import sys | |
base_url: str = 'https://zedpuzzle.neocities.org/craters/' | |
months_data: dict = { | |
'January' : 31, | |
'February' : 29, | |
'March' : 31, | |
'April' : 30, |
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
from zipfile import ZipFile | |
file_name = "password.zip" | |
with ZipFile(file_name, "r") as zip: | |
for pwd in range(1000,10000): | |
try: | |
zip.extractall(path="uncompressed", pwd=(str(pwd)).encode("utf-8")) | |
print(pwd) | |
print("SUCCESS") | |
break |
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
def score(src, planet, pw): | |
scoring = planet.growth_rate() * 10 - planet.num_ships() | |
#distance | |
for my_planet in pw.my_planets(): | |
total_distance = pw.distance(my_planet, planet) | |
scoring -= total_distance | |
#fleets for planet |
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
proc create_file | |
; [bp+4] offset file_name | |
; [bp+6] offset file_handle | |
; [bp+8] offset error_message | |
; [bp+10] file attributes [value] | |
push bp | |
mov bp, sp | |
push ax | |
push bx |
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
#!/bin/bash | |
touch way1.txt | |
echo "This is the second way!" > way2.txt | |
> way3.txt | |
printf "This is the fourth way!\n" > way4.txt | |
>> way5.txt | |
# The sixth way is made if way 5 is too much like way 3, | |
# But you have to insert some data and then press CTRL+C to write to the file and save it. | |
cat > way6.txt |
NewerOlder