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
<?xml version="1.0" encoding="UTF-8"?> | |
<Flow xmlns="http://soap.sforce.com/2006/04/metadata"> | |
<apiVersion>57.0</apiVersion> | |
<description>A deliberately bad flow.</description> | |
<environments>Default</environments> | |
<interviewLabel>NestedActionsInLoops {!$Flow.CurrentDateTime}</interviewLabel> | |
<label>NestedActionsInLoops</label> | |
<loops> | |
<name>LoopAssets</name> | |
<label>LoopAssets</label> |
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
// Given | |
let array = [0, 1, 2, 3, 4, 5, 6]; | |
let elementsToMove = [2, 3, 4]; | |
// Tasks | |
// 1) | |
// Given an arbitrary new index, re order the array so that | |
// elementsToMove is moved to the correct position |
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
# Uncrustify 0.60 | |
# | |
# General options | |
# | |
# The type of line endings | |
newlines = auto # auto/lf/crlf/cr | |
# The original size of tabs in the input |
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
// cmp | |
<aura:component access="global" implements="lightning:actionOverride,force:hasRecordId,force:hasSObjectName,lightning:isUrlAddressable" | |
description="proof of concept cmp"> | |
<aura:attribute name="contextId" type="String"/> | |
<aura:attribute name="windowURL" type="String"/> | |
<aura:handler name="init" value="this" action="{!c.init}"/> | |
<lightning:card title="Details"> | |
<div class="slds-p-around_medium"> | |
<p>RecordId (should be empty for new action): <b>{!v.recordId}</b></p> |
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
public class JSONObject { | |
public class JSONObjectException extends Exception {} | |
public static String NAMESPACEPREFIX { | |
get { | |
if (namespacePrefix == null) { | |
namespacePrefix = JSONObject.class.getName().substringBefore('.JSONObject'); | |
namespacePrefix = namespacePrefix.length() > 0 && namespacePrefix != 'JSONObject' ? namespacePrefix + '__' : ''; | |
} | |
return namespacePrefix; |
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
{ | |
"edition": "Enterprise", | |
"features" : ["ExpandedSourceTracking"], | |
"orgPreferences" : { | |
"enabled" : [ | |
"S1DesktopEnabled", | |
"Translation", | |
"PathAssistantsEnabled" | |
], | |
"disabled" : [ |
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
{ | |
"packageDirectories": [ | |
{ | |
"path": "myChangeSetName", | |
"default": true, | |
"package": "myChangeSetName" | |
} | |
], | |
"namespace": "", | |
"sfdcLoginUrl": "https://login.salesforce.com", |
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
<aura:component implements="lightning:availableForFlowScreens" access="global"> | |
<aura:attribute name="valueProvidedByFlow" type="String" /> | |
<aura:attribute name="labelForValue" type="String" /> | |
<aura:attribute name="type" type="String" description="currency, decimal, text supported"/> | |
<aura:attribute name="icon" type="String" default="standard:account" description="any icon from slds"/> | |
<lightning:card iconName="{!v.icon}" > | |
<aura:set attribute="title"> | |
{!v.labelForValue} | |
<aura:if isTrue="{!v.type == 'currency'}"> |
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
<aura:component implements="lightning:availableForFlowScreens" access="global"> | |
<aura:attribute name="valueProvidedByFlow" type="String" /> | |
<aura:attribute name="labelForValue" type="String" /> | |
<aura:attribute name="type" type="String" description="currency, decimal, text supported"/> | |
<aura:attribute name="icon" type="String" default="standard:account" description="any icon from slds"/> | |
<lightning:card iconName="{!v.icon}" > | |
<aura:set attribute="title"> | |
{!v.labelForValue} | |
<aura:if isTrue="{!v.type == 'currency'}"> |
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
String xml2json(String xml) { | |
XmlStreamReader reader = new XmlStreamReader(xml); | |
reader.setCoalescing(true); | |
//skip START_DOCUMENT | |
reader.nextTag(); | |
JsonGenerator g = Json.createGenerator(true); | |
g.writeStartObject(); |
NewerOlder