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 pyocr | |
| import pyocr.builders | |
| import pyautogui | |
| import time | |
| from PIL import Image, ImageOps, ImageEnhance | |
| # Get the available OCR tools | |
| tools = pyocr.get_available_tools() | |
| if len(tools) == 0: | |
| raise Exception("No OCR tool found") |
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
| ( { human in armor | elf in wizard robe | dwarf in armor | gnome in armor | hobbit in armor }:1.2 ), | |
| ( { 20yo | 40yo | 60yo | 80yo }:1.2 ), | |
| ( { 1girl, large breast, long hair | 1woman, large breast, long hair | 1boy | 1man }:1.1 ), solo, | |
| ( { Fighter, holding sword | |
| | Mage, holding magic rod | |
| | Priest, holding magic wand | |
| | Thief, holding knife | |
| | Bishop, holding magic stuff | |
| | Samurai, holding katana |
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
| ( { Fighter, holding sword | |
| | Mage, holding magic rod | |
| | Priest, holding magic wand | |
| | Thief, holding knife | |
| | Bishop, holding magic stuff, | |
| | Samurai, holding katana | |
| | Lord, holding magic stuff, | |
| | Ninja, holding kunai | |
| }:1.2 ), | |
| __hair_color__, 20yo, |
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
| rem Duplicate back up of game data for Wizardry: Proving Grounds of the Mad Overlord | |
| rem https://store.steampowered.com/app/2518960/ | |
| set TMP_SRC=%LOCALAPPDATA%\murphy\*.* | |
| set TMP_DST=%LOCALAPPDATA%\murphy_backup_%random% | |
| md %TMP_DST% | |
| xcopy /C /D /E /V /Y %TMP_SRC% %TMP_DST% |
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 os | |
| from PIL import Image, ImageDraw | |
| # Specify the path to the input folder | |
| input_folder = 'input_images' | |
| output_folder = 'output_images' | |
| # Create the output folder if it does not exist | |
| if not os.path.exists(output_folder): | |
| os.makedirs(output_folder) |
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 os | |
| from PIL import Image, ImageDraw | |
| # Specify the path to the input folder | |
| input_folder = 'input_images' | |
| output_folder = 'output_images' | |
| # Create the output folder if it does not exist | |
| if not os.path.exists(output_folder): | |
| os.makedirs(output_folder) |
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
| function processHashTags(input) { | |
| // Step 1: Split the input string by spaces (including line breaks) and remove leading/trailing whitespaces | |
| const hashTagsArray = input.split(/\s+/).map(tag => tag.trim()); | |
| // Step 2: Remove the '#' symbol and create a Set to remove duplicates | |
| const hashTagsSet = new Set(hashTagsArray.map(tag => tag.substring(1))); | |
| // Step 3: Convert the Set back to an array and sort it in alphabetical order | |
| const sortedHashTags = Array.from(hashTagsSet).sort(); |
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
| function processHashTags(input) { | |
| // Step 1: Split the input string by commas and remove leading/trailing whitespaces | |
| const hashTagsArray = input.split(',').map(tag => tag.trim()); | |
| // Step 2: Remove the '#' symbol and create a Set to remove duplicates | |
| const hashTagsSet = new Set(hashTagsArray.map(tag => tag.substring(1))); | |
| // Step 3: Convert the Set back to an array and sort it in alphabetical order | |
| const sortedHashTags = Array.from(hashTagsSet).sort(); |
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
| const data = { | |
| controls: [ | |
| { | |
| "id": "cde", | |
| "data": 456 | |
| }, | |
| { | |
| "id": "abc", | |
| "data": 123 | |
| } |