<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 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 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 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 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 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 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 |