View MyController
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 MyController{ | |
private MyInterface myImplementation; | |
public Integer valueOne{get;set;} | |
public Integer valueTwo{get;set;} | |
public MyController(MyInterface myImplementation){ | |
this.myImplementation = myImplementation; | |
} | |
public Integer calculatedTotalValue(){ |
View build.properties
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
# Specify the login credentials for the desired Salesforce organization | |
sf.username = <insert username here> | |
sf.password = <insert password and security token> | |
# Use 'https://login.salesforce.com' for production or developer edition | |
# Use 'https://test.salesforce.com for sandbox. | |
sf.serverurl = https://login.salesforce.com | |
sf.maxPoll = 20 |
View ExampleController
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 ExampleController | |
public Integer differenceInFooWidgetsAndStubCount(Id fooId, Id stubId){ | |
Foo__c foo = [ | |
SELECT | |
Id, | |
(SELECT Id FROM Widget__r) | |
FROM | |
Foo__c | |
WHERE |
View StackExchangeService
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 StackExchangeService{ | |
public List<SFSEQuestion> getStackExchangeQuestionsDeserialize(){ | |
Http httpQuestions = new Http(); | |
HttpRequest requestQuestions = new HttpRequest(); | |
requestQuestions.setEndpoint('http://api.stackexchange.com/2.2/users/605/questions?order=desc&sort=activity&site=salesforce'); | |
requestQuestions.setMethod('GET'); | |
requestQuestions.setHeader('Content-Type', 'application/json'); | |
HTTPResponse responseQuestions = httpQuestions.send(requestQuestions); | |
List<SFSEQuestion> questions = new List<SFSEQuestion>(); |
View PaymentInterface
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 interface PaymentInterface{ | |
String processPayment(); | |
} |
View ChatterGalleryPage
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
<apex:page showHeader="true" sidebar="true" title="Chatter Gallery" controller="ChatterGalleryPageController"> | |
<apex:includeScript value="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"/> | |
<apex:includeScript value="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"/> | |
<apex:stylesheet value="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css"/> | |
<apex:includeScript value="{!URLFOR($Resource.Galleria,'galleria/galleria-1.3.5.min.js')}"/> | |
<style> | |
.galleria{ width: 700px; height: 400px; background: #000 } | |
</style> | |
<apex:sectionHeader title="View Chatter Images" subtitle="Chatter Gallery" /> | |