Skip to content

Instantly share code, notes, and snippets.

View USLTD's full-sized avatar
🎮
Playing Project Reality: Battlefield 2

Luka Mamukashvili USLTD

🎮
Playing Project Reality: Battlefield 2
View GitHub Profile
from wcwidth import wcswidth
def reverse(string: str):
length: int = wcswidth(string)
l: list = []
for c in string:
l.append(ord(c))
l = l[::-1]
for o in l:
print(chr(o), end="")
from wcwidth import wcswidth
import shutil
def print_centre(text: str):
width = shutil.get_terminal_size()[0]
length = wcswidth(text)
l = len(text)
d = length // l
space = width - length
if space >= 0:
param(
[Parameter(Mandatory=$true,Position=0)]
[ValidateNotNull()]
[array]$pcNames,
[Parameter(Mandatory=$true,Position=1)]
[ValidateNotNull()]
[string]$fontFolder
)
$padVal = 20
$pcLabel = "Connecting To".PadRight($padVal," ")
setx prompt ЪДД[%username%@%computername%]-[$P]-[$D$S$T]$_АДД$G$S#$S
@USLTD
USLTD / Python3.9IDLEadder.reg
Created May 19, 2021 09:28
Fixs "Edit with IDLE 3.9 (64-bit)" not available in context menu on Windows
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.py]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.py\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.py\shell\editwithidle]
"MUIVerb"="&Edit with IDLE"
"Subcommands"=""

Keybase proof

I hereby claim:

  • I am ultrastudioltd on github.
  • I am ultrastudio (https://keybase.io/ultrastudio) on keybase.
  • I have a public key ASD-w-1Okm7BmxO-8XtJOuGXl79TLkK7R_vI2cpnP_i8AAo

To claim this, I am signing this object: