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
with open("ptable.json") as f: | |
elements = json.loads(f.read()) | |
def name2chem(name: str): | |
"""Converts a given name into chemical elements""" | |
possible = [] # Initialize a list to store possible matches | |
contcount = 0 # Initialize a variable to keep track of continue count | |
# Iterate over the characters in the input name |
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
#!/bin/bash | |
# https://www.gnu.org/licenses/old-licenses/gpl-2.0.html, who cares | |
pamac install trizen | |
cat >/tmp/convert.sh <<EOF | |
pacman -Qq | grep pamac | xargs pacman -Rs --noconfirm manjaro-application-utility | |
pacman -Rdd manjaro-release bashrc-manjaro manjaro-keyring | |
pacman -U https://www.archlinux.org/packages/core/x86_64/pacman/download/ https://www.archlinux.org/packages/core/any/pacman-mirrorlist/download/ https://www.archlinux.org/packages/community/any/lsb-release/download/ | |
mv /etc/pacman.d/mirrorlist.pacnew /etc/pacman.d/mirrorlist | |
mv /etc/pacman.conf.pacnew /etc/pacman.conf | |
# following line enables multilib repository |