This file contains hidden or 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
| enum WarehouseLocationERP { | |
| Thaphra = 'WH02', | |
| Thairath = 'WH03', | |
| Province = 'WH90', | |
| MachineInventory = 'WH25' | |
| } | |
| enum VirtualWarehouseERP { | |
| ReadyToUseWarehouse = '02', | |
| Machine = '03', |
This file contains hidden or 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 re | |
| txt = """<|python_tag|><function=spotify_song_artist>{"n": "[\"BIRDS OF A FEATHER\", \"Espresso\", \"Please Please Please\", \"Not Like Us\", \"Gata Only\"]"}</function>""" | |
| x = re.search("<function=(\w+)>(.*?)</function>", txt) | |
| if x: | |
| print("YES! We have a match!") | |
| print(x.group()) | |
| else: | |
| print("No match") |
This file contains hidden or 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
| # shorten path at prompt to only 1 level above current file | |
| export PROMPT_DIRTRIM=1 | |
| # start and stop docker-destop (in case clicking icon not working) | |
| alias docker-desktop-start='systemctl --user start docker-desktop' | |
| alias docker-desktop-stop='systemctl --user stop docker-desktop' |