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
TOTAL_TILES = 18 * 34 | |
AVERAGE_TIME_PER_ATTEMPT_IN_SECONDS = 40 | |
ATTEMPTS_PER_TILE = 2 | |
def single_tile(tiles_left: int): | |
wrong_tile = (tiles_left - 1) / tiles_left | |
correct_tile_bad_luck = 1 / (tiles_left - 1) * 1 / 4 | |
return wrong_tile + correct_tile_bad_luck |
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
# | |
# wm independent hotkeys | |
# | |
# terminal emulator | |
super + Return | |
konsole | |
# program launcher | |
super + @space |
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 string | |
import random | |
import praw | |
user_agent = "Subreddit comment shredder" | |
subs_to_delete_from = ['embarassing_sub_name1', 'embarassing_sub_name2'] | |
reddit = praw.Reddit( |
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
# Storing installed package names | |
echo $(pacman -Qentq) > pacman.bak | |
echo $(pacman -Qemtq) > yay.bak | |
echo $(pacman -Qdq) > pacman-optdep.bak | |
# Global config | |
cp /etc/pacman.conf pacman.conf.bak | |
cp -r /etc/pacman.d/ pacman.d.bak | |
cp /etc/hosts hosts.bak | |
cp /etc/hostname hostname.bak |