Poetry for dependencies
poetry add <package> to add the package
poetry build
Dependencies: poetry add pylint mypy black isort
| #!/bin/sh | |
| ls *.zip | parallel -j+0 --eta '7z x {} >/dev/null' |
| # 9(1)+4(2)+3(3)+2(4)+1(5)+1(6)+1(7)+1(8)+1(9)= | |
| import math | |
| slots: int = int(input("Slots: ")) | |
| spells = 0 | |
| for i in range(1, slots + 1): | |
| # print(i) | |
| new_spells = math.floor(slots / i) |
| # Aliases | |
| alias ll = ls -l | |
| alias la = ls -a | |
| alias lla = ls -la | |
| alias gs = git status | |
| alias ga = git add . | |
| alias gc = git commit | |
| alias gcu = git commit -m 'Update' | |
| alias gac = git add .; git commit |
| # Enforce Git timezone is UTC | |
| $env.TZ = "UTC" | |
| # Set default editor of Nushell | |
| $env.EDITOR = "vim" |
| Anglo-French | |
| Anglo-Latin | |
| Anglo-Norman | |
| Norman | |
| French | |
| Old French | |
| Middle French | |
| Latin | |
| Medieval Latin | |
| Vulgar Latin |
| Old English | |
| Proto-Germanic | |
| Proto-West Germanic |
| obscure origin | |
| unknown origin | |
| uncertain origin | |
| unclear origin | |
| unknown etymology | |
| unknown etymologies | |
| borrowed | |
| Old Norse | |
| Norse | |
| Icelandic |
| # Get list of devices | |
| ls /sys/class/leds/ | |
| # Find all that have "inputX::scrolllock" where X is an integer, and try the following command with all of them | |
| # The one that worked for me was 6 | |
| # Toggle keyboard scroll lock leds on | |
| sudo sh -c 'echo 1 > /sys/class/leds/input6::scrolllock/brightness' | |
| # Toggle keyboard scroll lock leds off |
Poetry for dependencies
poetry add <package> to add the package
poetry build
Dependencies: poetry add pylint mypy black isort
| def calc_assignable(prefix): | |
| import math | |
| print(f"{int(math.pow(2, 32 - prefix) - 2):,}") |