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 csv | |
import requests | |
# Open the input CSV file | |
with open("location_import.csv", "r") as input_file: | |
# Create a CSV reader object | |
reader = csv.DictReader(input_file) | |
# Open the output CSV file | |
with open("location_export.csv", "w") as output_file: | |
# Create a CSV writer object |
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
@echo off | |
:: Check if the number of arguments is less than 2 | |
if "%~1" == "" ( | |
echo Usage: %0 "Path to dwebp.exe" [Input files/directories...] | |
exit /b | |
) | |
:: Set the path to dwebp.exe | |
set dwebp_path="%~1" |
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 | |
helpFunction() | |
{ | |
echo "" | |
echo "Usage: $0 1000 100" | |
echo -e "\t [Target Resolution] [Border size]" | |
exit 1 # Exit script after printing help | |
} |
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
#Download dwebp (WebP decoder tool) https://developers.google.com/speed/webp/download | |
#!/bin/bash | |
if ! command -v dwebp &> /dev/null | |
then | |
echo "dwebp could not be found" | |
if ! command -v brew &> /dev/null | |
then | |
echo "Homebrew could not be found" | |
exit |