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
number: int = 1_000_000_000 | |
print(number) # 1000000000 | |
print(f'{number:_}') # 1_000_000_000 | |
print(f'{number:,}') # 1,000,000,000 | |
var: str = 'var' | |
print(f'{var:>20}') |
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 pyautogui | |
import random | |
import time | |
import keyboard | |
screenWidth, screenHeight = pyautogui.size() | |
def random_sleep(): | |
return random.uniform(0.625, 1.555) |
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
Write-Output "Zeus Package Manager for AthenaEnv PS2 libraries and Modules" | |
Write-Output "Made by github.com/terremoth" | |
$command = $args[0] | |
$library = $args[1] | |
$modulesDir = "athena_libs" | |
$libPath = "https://api.github.com/repos/terremoth/athenaenv-libs/contents/"+$library | |
$packageManagerFunction = "install", "update", "remove", "search" | |
$actualPath = $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
<?php | |
echo "Disk size: ".disk_total_space("D:").PHP_EOL; | |
$disk = fopen('\\\\.\\D:', 'rb+'); //escaping the escape | |
$chunk_size = 4096; | |
while (!feof($disk)) { | |
$bin_data = fread($disk, 4096); |
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
<?php | |
$is_terminal = php_sapi_name() == "cli"; | |
$td_tag_init = "\t".'<td>'; | |
$td_tag_end = '</td>'.PHP_EOL; | |
$tr_tag_init = '<tr>'.PHP_EOL; | |
$tr_tag_end = '</tr>'.PHP_EOL; | |
$to_html_init = '&#'; | |
$to_html_end = ';'; | |
$new_line_code = '<br>'.PHP_EOL; |
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
function quanto_cobrar(quanto_quero_ganhar, taxa_de_desconto) { | |
let i = 0; | |
function loop(valor) { | |
let resultado = parseFloat((valor - (valor * taxa_de_desconto)).toFixed(2)); | |
let acrescentar = parseFloat((valor - resultado).toFixed(2)); | |
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
#!/usr/bin/env python | |
"""Prints to the screen all available and usable Python Modules (that aren't pip packages) installed | |
and display their description""" | |
import importlib | |
import os | |
import pkgutil | |
import platform | |
import re |
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
GRUB_CMDLINE_LINUX="noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off mitigations=off" |
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
<?php | |
//echo "\033[23\033[;H"; | |
function is_little_endian() { | |
$testint = 0x00FF; | |
$p = pack('S', $testint); | |
return $testint === current(unpack('v', $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
# suppose the main file to load is main.py and the icon file is called main.ico, the process is this: | |
python -m nuitka --enable-plugin=tk-inter --onefile --disable-console --windows-icon-from-ico=main.ico main.py | |
pyinstaller --onefile --icon=main.ico --noconsole main.py | |
cxfreeze -c main.py --icon=main.ico --base-name=Win32GUI --target-dir distcx |
NewerOlder