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
/** | |
* Inspired by @MoOx original script: https://gist.github.com/MoOx/93c2853fee760f42d97f | |
* Adds file download per @micalevisk https://gist.github.com/MoOx/93c2853fee760f42d97f#gistcomment-2660220 | |
* | |
* Changes include: | |
* - Get the description from the `title` attribute instead of `aria-label` (doesn't exist anymore) | |
* - Use style.backgroundColor and parse the rgb(...) to hex (rather than regex parsing of 'style' string) | |
* - Downloads labels to a JSON file named after the webpage to know which GitHub repo they came from. | |
* | |
* Last tested 2019-July-27: |
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
public class DemoBatchJob implements Database.Batchable<SObject> { | |
public Database.QueryLocator start( Database.BatchableContext context ) { | |
System.debug( 'DemoBatchJob.start: ' + context ); | |
return Database.getQueryLocator([ SELECT Id FROM Organization ]); | |
} | |
public void execute( Database.BatchableContext context, List<SObject> records ) { | |
System.debug( 'DemoBatchJob.execute: ' + context ); | |
Integer i = 1 / 0; // cause exception |
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
TEXT( YEAR( ActivityDate ) ) & | |
LPAD( TEXT( MONTH( ActivityDate ) ), 2, '0' ) & | |
LPAD( TEXT( DAY( ActivityDate ) ), 2, '0' ) & | |
'T' & | |
LPAD( TEXT( HOUR( TIMEVALUE( ActivityDateTime ) ) ), 2, '0' ) & | |
LPAD( TEXT( MINUTE( TIMEVALUE( ActivityDateTime ) ) ), 2, '0' ) & | |
LPAD( TEXT( SECOND( TIMEVALUE( ActivityDateTime ) ) ), 2, '0' ) & | |
'Z'; |
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
/* 1440 minutes in a day */ | |
TEXT( YEAR( ActivityDate + DurationInMinutes / 1440 ) ) & | |
LPAD( TEXT( MONTH( ActivityDate + DurationInMinutes / 1440 ) ), 2, '0' ) & | |
LPAD( TEXT( DAY( ActivityDate + DurationInMinutes / 1440 ) ), 2, '0' ) & | |
'T' & | |
LPAD( TEXT( HOUR( TIMEVALUE( ActivityDateTime + DurationInMinutes / 1440 ) ) ), 2, '0' ) & | |
LPAD( TEXT( MINUTE( TIMEVALUE( ActivityDateTime + DurationInMinutes / 1440 ) ) ), 2, '0' ) & | |
LPAD( TEXT( SECOND( TIMEVALUE( ActivityDateTime + DurationInMinutes / 1440 ) ) ), 2, '0' ) & | |
'Z'; |
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
#!/bin/bash | |
# https://gist.github.com/douglascayers/661eef9ff9f45a49b2025f6cbdc5679e | |
set -e | |
# Get the name of the currently checked out branch. | |
current_branch=$(git branch --show-current) | |
# Delete all local branches whose remote branch no longer exists, excluding the current branch. |
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
{ | |
"packageDirectories": [ | |
{ | |
"path": "force-app", | |
"default": true | |
} | |
], | |
"namespace": "", | |
"sfdcLoginUrl": "https://login.salesforce.com", | |
"sourceApiVersion": "45.0" |
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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "SFDX: Deploy Current File", | |
"type": "shell", | |
"command": "sfdx", | |
"args": [ | |
"force:source:deploy", | |
"--sourcepath", |
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
# Install Git | |
# https://git-scm.com/downloads | |
# Install Salesforce CLI | |
# https://developer.salesforce.com/tools/sfdxcli | |
# Authorize to the org you want to install Chatter Bot apps to | |
sfdx force:auth:web:login -a YourOrgAlias | |
# Download the Chatter Bot Groups app and deploy to your org (pre-requisite for Chatter Bot Feeds demo) |
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
{ | |
"version": "2.501", | |
"url": "https://github.com/douglascayers-org/sfdx-mass-action-scheduler/wiki/Release-Notes" | |
} |