<p align="right">
<img src="./assets/hello-dark.png#gh-light-mode-only" alt="hello-dark" height="220" width="210" />
<img src="./assets/hello-light.png#gh-dark-mode-only" alt="hello-light" height="220" width="210" />
</p>
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 time | |
def reverse_utf8_decoder(input_string): | |
encoded_bytes = input_string.encode("utf-8") | |
for byte in reversed(encoded_bytes): | |
yield byte | |
time.sleep(1) | |
def reverse_utf8_char_decoder(byte_stream): | |
buffer = [] |
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 | |
from packaging.version import parse | |
def get_package_versions_and_dates(package_name): | |
""" | |
Fetch all versions and release dates of a package from PyPI, sorted by version. | |
Args: | |
package_name (str): The name of the Python package. |
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
% Factorial in Prolog, its as clear as it can be, no need for report. | |
% By AARMN The Limitless (Alireza Mohammadnezhad) | |
% Factorial base case | |
factorial(0, 1). % factorial of 0 is 1 | |
% Factorial recursive logic | |
factorial(N, Return) :- | |
N > 0, % Not really needed, just stopping negetive values, a failsafe | |
NDec is N - 1, % Decrease value |
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
"$schema" = 'https://starship.rs/config-schema.json' | |
# right_format = """ | |
# """ | |
command_timeout = 500000000 | |
format = """ | |
[](#9A348E)\ | |
[$sudo$username$hostname$localip ](bg:#9A348E)\ |
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
wt powershell -noexit -command "cd ${pwd}" |
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
windows: ii (alias to -> Invoke-Item) | |
mac: open | |
linux: xdg-open (freedesktop foundation tool) |
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 urllib.request, json | |
def users_stars_raw(users): | |
users_stars = {} | |
for user in users: | |
i=1 | |
users_stars[user] = [] | |
while True: |
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
1. powershell "start cmd -v runAs" | |
2. powershell -Command "Start-Process cmd -Verb RunAs" | |
3. use this sudo.bat code and put it in PATH: | |
@echo off | |
powershell -Command "Start-Process cmd -Verb RunAs -ArgumentList '/c cd /d %CD% && %*'" | |
@echo on |