Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SirDank committed Mar 12, 2023
1 parent 27e6788 commit aae9a4b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def example():

multithread(example, 10) # func: example | threads: 10 | single: 50 seconds | multi: 5 seconds
```
> <img width="500" alt="image" src="https://user-images.githubusercontent.com/52797753/153721721-0541e26b-f0b2-4c87-8c61-778a817cf80e.png">
> <img width="500" alt="image" src="https://user-images.githubusercontent.com/52797753/224534374-4693f9fb-2c0c-426b-970d-face9926b9cd.png">
```py
from dankware import multithread
Expand All @@ -51,7 +51,7 @@ def example(num):
multithread(example, 10, new_list) # input_one: list
print(sum)
```
> <img width="500" alt="image" src="https://user-images.githubusercontent.com/52797753/153748543-07260a2e-5e25-4926-b11f-9d3670d2f3ef.png">
> <img width="500" alt="image" src="https://user-images.githubusercontent.com/52797753/224534424-f03f5884-e9c8-445f-8c0a-5bb227c35aed.png">
```py
from dankware import multithread
Expand All @@ -66,7 +66,7 @@ def example(num1, num2):

multithread(example, 10, list1, list2) # input_one: list1 | input_two: list2
```
> <img width="500" alt="image" src="https://user-images.githubusercontent.com/52797753/153749164-d8224ad4-3116-4376-90cd-bc1d093e0942.png">
> <img width="500" alt="image" src="https://user-images.githubusercontent.com/52797753/224534446-c956dfb0-81a2-4717-bd80-e04484e76507.png">
```py
from dankware import multithread
Expand Down
66 changes: 33 additions & 33 deletions run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def main():

COUNTER = 0

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

def example():
global a
Expand All @@ -18,7 +18,7 @@ def example():

multithread(example, 10)

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

new_list = [1, 2, 3, 4, 5]

Expand All @@ -30,7 +30,7 @@ def example(num):
multithread(example, 10, new_list) # input_one: list
print(sum)

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

list1 = [1, 2, 3, 4, 5]
list2 = [5, 4, 3, 2, 1]
Expand All @@ -41,7 +41,7 @@ def example(num1, num2):

multithread(example, 10, list1, list2)

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

new_list = [1, 2, 3, 4, 5]

Expand All @@ -51,11 +51,11 @@ def example(num1, num2):

multithread(example, 10, new_list, 5, progress_bar=False)

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(random_ip())

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

def random_ip_old() -> str:

Expand Down Expand Up @@ -160,48 +160,48 @@ def gen_new():

print("")

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

try: value = 1/0
except: print(clr(err(sys.exc_info()), 2))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

for url in github_downloads("EssentialsX/Essentials"): print(url)

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

for url in github_file_selector("EssentialsX/Essentials", "remove", ['AntiBuild', 'Discord', 'GeoIP', 'Protect', 'XMPP']): print(url)

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(clr("\n > Hey! Long time no see :)"))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(clr("\n > Hey! Long time no see :)", colour_one = magenta, colour_two = white))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(clr("\n This is a string: True | This is an integer: False"))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(clr("\n EXEC STATUS: [SUCCESS]! | PROGRESS: 100%"))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(clr(f"\n > {magenta}Purple{white} thinks he's better than everyone else :(", colour_two=green))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(clr("\n > Error in sector [7] redirecting... | INTEGRITY_CHECK_SUCCESS: TRUE",2))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(clr("\n > Is this a randomly coloured string: TRUE | As you can see it does not colour True/False",3))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

banner = '''
Expand All @@ -217,15 +217,15 @@ def gen_new():
'''
print(clr(banner,4))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(align(banner))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(align(clr(banner,4)))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

banner = '''
Expand All @@ -245,55 +245,55 @@ def gen_new():
'''
print(fade(banner, "black"))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(fade(banner, "black-v"))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(fade(banner, "red"))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(fade(banner, "red-v"))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(fade(banner, "green"))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(fade(banner, "green-v"))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(fade(banner, "cyan"))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(fade(banner, "cyan-v"))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(fade(banner, "blue"))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(fade(banner, "blue-v"))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(fade(banner, "purple"))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(fade(banner, "purple-v"))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(fade(banner, "pink-v"))

COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________"))
COUNTER += 1; print(clr(f"\n___[{COUNTER}]__________________________________________________________________________________\n"))

print(fade(banner, "random"))

Expand Down

0 comments on commit aae9a4b

Please sign in to comment.