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
const callbacks = {}; | |
/** | |
* Registers a callback for an event | |
* @param {string} eventName - Name of the event to listen for. | |
* @param {function} callback - Function to invoke when said event is fired. | |
*/ | |
const register = (eventName, callback) => { | |
if (!callbacks[eventName]) { | |
callbacks[eventName] = new Set(); |
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
div{ | |
background-color: #cccccc; | |
} |
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
div{ | |
background-color: #ddd; | |
} |
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
//Use below code snippet to Schedule Async Framework to run every 15 minutes and clear the queue | |
//Scheduler Run every 15 mins | |
AsyncApexFrameworkScheduler obj1 = new AsyncApexFramework(); | |
AsyncApexFrameworkScheduler obj2 = new AsyncApexFramework(); | |
AsyncApexFrameworkScheduler obj3 = new AsyncApexFramework(); | |
AsyncApexFrameworkScheduler obj4 = new AsyncApexFramework(); | |
System.schedule('AsyncApexFramework 1', '0 0 * * * ?', obj1); | |
System.schedule('AsyncApexFramework 2', '0 15 * * * ?', obj2); | |
System.schedule('AsyncApexFramework 3', '0 30 * * * ?', obj3); |
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
/** | |
* @Author : Jitendra Zaa | |
* @Date : Apr 21 2019 | |
* Framework to fix limit of 100 Batch Apex in Queue | |
* */ | |
public class BatchApexFramework implements Schedulable{ | |
private static Integer availableBatchLimit = null; | |
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
.hidemodel{ | |
display: none; | |
} |
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
<aura:component implements="force:appHostable, lightning:isUrlAddressable" > | |
<aura:attribute name="accountName" type="String" /> | |
<aura:handler name="init" value="{!this}" action="{!c.init}" /> | |
Lightning Component received Account Name - {!v.accountName} | |
</aura:component> |
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
/** | |
* @Author : Jitendra Zaa | |
* @Date : Jul 22 2018 | |
* @Desc : SSO registration handler class used by Janrain Auth Provider | |
* */ | |
global class AutocreatedRegHandler1532138524514 implements Auth.RegistrationHandler{ | |
/** | |
* Custom logic to extract Twitter, Yahoo and Facebook unique Identifier | |
* */ | |
global String extractUniqueIdentifier(Auth.UserData data){ |
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 "Retrieve Metadata from Sandbox" | |
echo "Command - sfdx force:mdapi:retrieve -r metadata -u jit11 -k metadata/package.xml" | |
sfdx force:mdapi:retrieve -r metadata -u jit11 -k metadata/package.xml | |
echo "Unzip results" | |
echo "Command - unzip -o metadata/unpackaged.zip -d metadata" | |
unzip -o metadata/unpackaged.zip -d metadata | |
rm metadata/unpackaged.zip |