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
// Explanation here: https://scerno.com/scripting/parse-xml-to-json-lightweight-vanilla-js/ | |
/** | |
* xmlToJson | |
* --------- | |
* Parse an XML string into an array of plain JS objects. | |
* Each piece of text is handled exactly once for efficiency. | |
* | |
* @param {string} xml A well‑formed XML string | |
* @return {Array<Object>} |
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
// Explanation here: https://scerno.com/adobe/adobe-indesign-easy-right-angled-line-script/ | |
/* SquareLineSelector.jsx | |
InDesign ExtendScript | |
v1.2 May 2025 | |
Converts an angled line into orthogonal leader lines with optional three‑sided variant. | |
UI now uses a single numeric field + slider for distance; selector style/size removed. | |
*/ | |
#target InDesign |
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
<?php | |
// Explanation here: https://scerno.com/wordpress/wordpress-add-product-url-to-woocommerce-export/ | |
// Add a new "Product URL" column header to the export file | |
add_filter( 'woocommerce_product_export_column_names', 'add_url_export_column' ); | |
add_filter( 'woocommerce_product_export_product_default_columns', 'add_url_export_column' ); | |
function add_url_export_column( $columns ) { | |
$columns['product_url'] = 'Product URL'; |
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
@echo on | |
setlocal | |
:: Get the first and second arguments | |
set "target=%~1" | |
set "second=%~2" | |
:: Check if first argument exists | |
if "%target%"=="" ( | |
echo Error: No folder was provided. |