Skip to content

Instantly share code, notes, and snippets.

View peter-schmalfeldt's full-sized avatar

Peter Schmalfeldt peter-schmalfeldt

View GitHub Profile
@peter-schmalfeldt
peter-schmalfeldt / convertStringToEmoji.js
Created October 26, 2023 04:07
Convert String to Emoji for SFCC XML Site Imports
/**
* Convert String to Emoji
* Most emoji's start with �
* If you have these in your SFCC Site Import XML File, you might get an import error.
*
* @usage convertStringToEmoji('��') => 🙂
* @param {String} str Raw URL Encoded String
*/
function convertStringToEmoji(str) {
// Regex matching either a surrogate or a character.
@peter-schmalfeldt
peter-schmalfeldt / nvda-keyboard-shortcuts.md
Created February 18, 2023 02:36
NVDA command key quick reference