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 | |
CHANGESET_NAME=$1 | |
if [[ "$CHANGESET_NAME" == "" ]]; then | |
echo No change set specified | |
exit 1 | |
fi | |
DEST_ORG=$2 | |
if [[ "$DEST_ORG" == "" ]]; then | |
DEST_ORG=`sfdx force:org:display | grep Alias | awk '{print $2}'` |
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 RangeIterator implements Iterable<Integer> { | |
Integer start; | |
Integer stop; | |
public RangeIterator(Integer start, Integer stop) { | |
this.start = start; | |
this.stop = stop; | |
} | |
public Iterator<Integer> iterator() { | |
return new RangeIterable(start, stop); |
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
@IsTest(IsParallel =false) // ContentWorkspace | |
public class InsertContentDocumentLinkTest { | |
@IsTest | |
static void do_a_thing() { | |
CollaborationGroup unlistedGroup = new CollaborationGroup( | |
Name = 'Unlisted', | |
CollaborationType = 'Unlisted' | |
); | |
insert unlistedGroup; |
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:application access="GLOBAL" extends="ltng:outApp" implements="ltng:allowGuestAccess"> | |
<aura:dependency resource="c:EventsCalendar" /> | |
</aura:application> |
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
var ascii_image = ` | |
############ ######## | |
################## ############## | |
###################### ################## | |
########################################### | |
############################################# | |
############################################### | |
################################################## | |
##################~ ############################# | |
########################## ############################### |
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
// prettier.config.js or .prettierrc.js | |
module.exports = { | |
printWidth: 100, | |
// tabWidth: 4, // inherits from .editorconfig | |
trailingComma: 'es5', | |
singleQuote: true, | |
overrides: [ | |
{ | |
files: '*.cmp', | |
options: { |
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
# Uncrustify-0.68_f | |
# | |
# General options | |
# | |
# The original size of tabs in the input. | |
input_tab_size = 8 # Default: 8 | |
# The size of tabs in the output (only used if align_with_tabs=true). | |
output_tab_size = 8 # Default: 8 |
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
/** | |
* Assigns a permission set or permission set group to all user with the specified profile. | |
* Additional filter criteria can be passed in if the users needs filtered further. | |
* Example: Only assign permission set to community users on the Salesforce account | |
* String filter = 'Contact.Account.Name = \'Salesforce\''; | |
* BatchGrantPermissionSet('Community User Profile', 'Salesforce_Account_Privs', filter); | |
*/ | |
public class BatchGrantPermissionSet implements Database.Batchable<sObject> { | |
String query {get; 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
const registeredCallbacks = {}; | |
const ORIGIN = location.origin; | |
function listener(event) { | |
if (event.origin !== ORIGIN) { | |
return; | |
} | |
let data = JSON.parse(event.data); | |
let ticket = data.ticket; | |
let payload = data.payload; |
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
// ==UserScript== | |
// @name Rally Iteration Status | |
// @namespace https://gist.github.com/gbutt/5e741ec96eb682f5174cb5b2bb72d8cb | |
// @version 0.1 | |
// @description fix kanban height | |
// @author gbutt | |
// @match https://rally1.rallydev.com/ | |
// @grant none | |
// ==/UserScript== |