Skip to content

Instantly share code, notes, and snippets.

@nmaratasdev
nmaratasdev / ampscript-looping-through-xml.amp
Created January 20, 2022 16:45
ampscript-looping-through-xml
<!-- Example Code -->
%%[
/**
* Looping Through XML Payload Data Demo
* This example consumes the XML payload that's stored in the [XML] field.
* This example loops through all <book> nodes and renders book details in the email.
* This example uses RaiseError() when there is no xml payload data to parse.
* This example uses RaiseError() when there are no <book> in the xml payload.
*/
SET @XML = [XML]
@nmaratasdev
nmaratasdev / ampscript-looping-sample-xml-schema.xml
Created January 20, 2022 17:02
ampscript-looping-sample-xml-schema
<?xml version='1.0' encoding='UTF-8'?>
<catalog>
<book>
<id>001</id>
<author>Liu Cixin</author>
<title>The Three-Body Problem</title>
<genre>Science Fiction</genre>
</book>
<book>
<id>002</id>
@bradtraversy
bradtraversy / terminal-commands.md
Last active May 20, 2024 15:11
Common Terminal Commands

Common Terminal Commands

Key Commands & Navigation

Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:

  • Up Arrow: Will show your last command
  • Down Arrow: Will show your next command
  • Tab: Will auto-complete your command
  • Ctrl + L: Will clear the screen
@nmaratasdev
nmaratasdev / ampscript-dynamic-sender-profile-dynamic-from-name.amp
Created May 25, 2022 18:52
ampscript-dynamic-sender-profile-dynamic-from-name
%%[
/**
* Dynamic From Name Logic
* Use subscribers [language] preference from the entry DE to pull back dynamic fromName from the content DE.
*/
SET @language = AttributeValue("language")
SET @fromName = Lookup("ENT.04_DynamicSenderProfile_Content","fromName","language", @language)
]%%%%=v(@fromName)=%%
@nmaratasdev
nmaratasdev / ampscript-dynamic-sender-profile-dynamic-from-email.amp
Created May 25, 2022 18:53
ampscript-dynamic-sender-profile-dynamic-from-email
%%[
/**
* Dynamic From Email Logic
* Use subscribers [language] preference from the entry DE to pull back dynamic fromEmail from the content DE.
*/
SET @language = AttributeValue("language")
SET @fromEmail = Lookup("ENT.04_DynamicSenderProfile_Content","fromEmail","language", @language)
]%%%%=v(@fromEmail)=%%
@d2s
d2s / install-spell-checker-to-vs-code.md
Last active May 20, 2024 15:10
Installing spell checker to VS Code

Spelling Checker for Visual Studio Code

  • README of the code-spell-checker VS Code extension.

Installing spell checker to VS Code

  • Open up VS Code
  • Press button F1
  • Type ext install code-spell-checker to the command promnt and press Enter key.
@nmaratasdev
nmaratasdev / ampscript-dynamic-sender-profile-configuration.amp
Created May 25, 2022 18:55
ampscript-dynamic-sender-profile-configuration
%%=TreatAsContent(ContentBlockByKey('DynamicFromName'))=%%
%%=TreatAsContent(ContentBlockByKey('DynamicFromEmail'))=%%
@joshfortyfour
joshfortyfour / block-layout-names.md
Last active May 20, 2024 15:09
List of block layout names in Magento 2 Community Edition
  • absolute_footer
  • accountConfirmation
  • additional.product.info
  • address_book
  • addtocart.shortcut.buttons
  • addtocart.shortcut.buttons.additional
  • adjustments
  • admin.block.customer.grid.container
  • admin.block.customer.grid.export
  • admin.customer.carts
@mikejreading
mikejreading / serviceNowPlugins.js
Last active May 20, 2024 15:08
Update ServiceNow Plugins
/*----------------------------------------------------*/
/* */
/* Have a bunch of apps that need to be updated? */
/* Run this and follow the directions in the output */
/* It will build a payload and use the CI/CD API to */
/* run a batch install of all of the needed updates. */
/* */
/*----------------------------------------------------*/
//Want Demo Data with the app?