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== |
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
| // add this script to Head Markup | |
| (function() { | |
| // skip loading pendo for community builder pages | |
| if (location.hostname.indexOf('livepreview') > -1 || location.hostname.indexOf('sitepreview') > -1) { | |
| return; | |
| } | |
| // load pendo | |
| (function(apiKey){ | |
| (function(p,e,n,d,o){var v,w,x,y,z;o=p[d]=p[d]||{};o._q=[]; |
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 JsonReader { | |
| public Map<String, Object> jsonMap {get; set;} | |
| public JsonReader(Map<String, Object> jsonMap) { | |
| this.jsonMap = jsonMap; | |
| } | |
| public String getString(String path) { | |
| return (String)getFieldAtPath(path); | |
| } |
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 | |
| TARGET_ORG=$1 | |
| if ["$TARGET_ORG" == ""]; then | |
| echo Please specify a target username | |
| echo For a list of available usernames use: sfdx force:org:list | |
| exit 1 | |
| fi |
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 TestDataFactory { | |
| public class SObjectGenerator { | |
| public Integer seed = 0; | |
| private Map<String,Object> fields; | |
| private SObjectType sobType; | |
| public SObjectGenerator(SObjectType sobType, Map<String,Object> fields) { | |
| this.fields = fields; | |
| } |
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/sh | |
| mkdir tmp | |
| # get all record types and save to a file | |
| sfdx force:data:soql:query --query "SELECT ID, DeveloperName, SObjectType FROM RecordType WHERE IsActive = true" > tmp/recordtypes.txt | |
| # get record type id for account record type with developer name = Educational_Institution | |
| RTID_ACCOUNT_INSTITUTION=`cat tmp/recordtypes.txt | awk ' $3 ~ /Account/ && $2 ~ /Educational_Institution/ { print $1 } ' ` |
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
| #compdef sfdx | |
| # SFDX Autocomplete plugin for Oh-My-Zsh | |
| # Requires: The SFDX client CLI | |
| # Author: gbutt | |
| # Usage: add this file to ~/.oh-my-zsh/plugins/sfdx, and then add sfdx to your plugins in ~/.zshrc | |
| local -a _1st_arguments | |
| _1st_arguments=( | |
| "force\:alias\:list":"list username aliases for the Salesforce CLI" |
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/sh -e | |
| function printHelp() { | |
| echo "Incorrect usage. Example:\n\t./soql2csv.sh \"SELECT Id, Name FROM Account LIMIT 10\" myorg > accounts.csv"; | |
| } | |
| if [ ! -e "`which jq`" ]; then | |
| echo "You need to install jq to use this script." | |
| if [[ "`uname`" == "Darwin" && -e "`which brew`" ]]; then | |
| echo "Try running 'brew install jq'" |
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
| /* | |
| PharmCAS Import Controller - Used by VF Page pharmcasImport | |
| This controller mostly offers some RemoteAction methods to our Visualforce page | |
| Most of the Remote Actions act as proxies for web service calls to the WebAdMIT system in order to work around CORS restrictions. | |
| e.g. initiateExport, checkExportStatus, and downloadExport | |
| upsertApps is the main action on this controller. It will receive a list of WebAdMIT records and process them in Salesforce. | |
| For more info on this refer to the Technical Documentation at https://docs.google.com/document/d/edit | |
| */ |
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 j$ = jQuery.noConflict(); | |
| if ({! debugEnabled }) { | |
| loadSourcesLocalhost().fail(loadSourcesSfdc); | |
| } else { | |
| loadSourcesSfdc(); | |
| } | |
| function loadSourcesLocalhost() { | |
| return j$.ajax({url: '//localhost:3000/vendor.js', dataType: 'script', timeout: 100}) |