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
# Git shell | |
# https://gist.github.com/trey/2722934 | |
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash | |
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh | |
GIT_PS1_SHOWDIRTYSTATE=true | |
GIT_PS1_SHOWCOLORHINTS=true | |
export PS1='\[\033[0;36m\]\u@\h\[\033[0;35m\]:\[\033[0;33m\]\w\[\033[0;37m\]$(__git_ps1)\[\033[0m\]\n\$ ' |
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
// README: This is the only line you need to edit (generally speaking) | |
// This is the object for which I want to extract the field describes. | |
// Running this script will send the resulting field list to your user's email, | |
// with the fields as an attached CSV file. | |
Schema.DescribeSObjectResult objectDescribe = Schema.SObjectType.OpportunityLineItem; | |
/** | |
* Wrapper class to return CSV rows | |
*/ | |
public class FieldCsvWriter { |
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 S1Reporting { | |
/* | |
* @see Salesforce1 Reporting REST API Developer Guide | |
*/ | |
public class GetAnalyticsReportsResponseBody { | |
@AuraEnabled | |
public String name; | |
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 DependentPicklistDemoController { | |
@AuraEnabled | |
public static List<Contact> getContacts() { | |
return [ | |
SELECT Id, Name, AccountId, Account.Name | |
FROM Contact | |
LIMIT 200 | |
]; | |
} |
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
# MavensMate | |
config/ | |
# Sublime Text | |
*.sublime* |
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 CommunityTopicListItemController { | |
@AuraEnabled | |
public static void subscribe(Id entityId) { | |
ConnectApi.Subscription subscription = | |
ConnectApi.ChatterUsers.follow(Network.getNetworkId(), 'me', entityId); | |
} | |
@AuraEnabled | |
public static void unsubscribe(Id subscriptionId) { |
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
/* | |
* @return whether JavaScript is executing | |
* within the context of Salesforce1. | |
* If not, the context is assumed | |
* to be the regular browser "app". | |
*/ | |
function isSalesforce1() { | |
// Use the presence of sforce.one | |
// as the acid test to know that |
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
@Service | |
public class AdvertiserListingTaskService { | |
public void executeWithConfig(TaskConfig config) { | |
AdvertiserListingTask task = getTask(); | |
task.apply(config); | |
task.run(); // Or something like executor.execute(task) | |
} | |
@Lookup |
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 OneLeadController { | |
@AuraEnabled | |
public static Id createLead(Lead newLead) { | |
insert newLead; | |
return newLead.Id; | |
} | |
@AuraEnabled | |
public static List<Id> createLeads(List<Lead> newLeads) { |
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
@Service | |
public class IntegrationService { | |
@Autowired | |
private TaskExecutor integrationTaskExecutor; | |
@Autowired | |
private IntegrationTaskFactory integrationTaskFactory; | |
/** |