Skip to content

Instantly share code, notes, and snippets.

View FishOfPrey's full-sized avatar
💭
🦈

Daniel Ballinger FishOfPrey

💭
🦈
View GitHub Profile
@FishOfPrey
FishOfPrey / ToolingAPI.cls
Last active August 29, 2015 14:10
Apex proxy classes to call v32.0 of the Tooling API via WebServiceCallout.invoke.
//Generated by FuseIT WSDL2Apex (http://www.fuseit.com/Solutions/SFDC-Explorer/Help-WSDL-Parser.aspx)
//Methods Included: create, delete, describeGlobal, describeSObject, describeSObjects, describeValueType, describeWorkitemActions, executeAnonymous, getDeleted, getServerTimestamp, getUpdated, getUserInfo, invalidateSessions, login, logout, query, queryAll, queryMore, retrieve, runTests, runTestsAsynchronous, setPassword, update, upsert
// Primary Port Class Name: SforceService
public class ToolingAPI {
public class ActionOverride {
public Boolean isAvailableInTouch;
public String name;
public String pageId;
public String url;
private String[] isAvailableInTouch_type_info = new String[]{'isAvailableInTouch','urn:tooling.soap.sforce.com','boolean','1','1','false'};
@FishOfPrey
FishOfPrey / background.js
Last active November 26, 2015 00:46
Chrome Extension to replace the standard CKEditor configuration with one of my control in the Salesforce success forums
chrome.webRequest.onBeforeRequest.addListener(
function(details) {
//return {redirectUrl: 'https://developer.salesforce.com/forums/ckeditor/ckeditor-5.x/rel/sfdc-config.js'};
return {redirectUrl: 'https://na5.salesforce.com/resource/1447106281000/DFB__sfdcConfig'};
},
{
urls: [
"https://developer.salesforce.com/forums/ckeditor/ckeditor-4.x/rel/sfdc-config.js",
"https://developer.salesforce.com/forums/ckeditor/ckeditor-4.x/rel/sfdc-config.js?t=4.4.6.4"
],
//Generated by FuseIT WSDL2Apex (http://www.fuseit.com/Solutions/SFDC-Explorer/Help-WSDL-Parser.aspx)
// http://globalcurrencies.xignite.com/xGlobalCurrencies.asmx?wsdl
//Methods Included: GetRealTimeRate
//Methods Excluded: GetRealTimeRates, GetBars, GetHistoricalRatesRange, GetLatestCrossRates, GetHistoricalRates, GetRealTimeRateTable, ListActiveCurrencies, ConvertRealTimeValue, ListCurrencies, GetAllRealTimeRates, GetLatestCrossRate, GetBestCrossRate, GetBestCrossRates, ConvertHistoricalValue, GetHistoricalRate, GetLatestHistoricalRate, GetLatestHistoricalRates, GetHistoricalRatesRanges, GetOfficialHistoricalRate, GetOfficialRate, GetOfficialRates, GetOfficialHistoricalRates, GetTick, GetTicks, GetBar, GetChartBars, GetLondonHistoricalRatesRange, GetForwardRate
// Primary Port Class Name: XigniteGlobalCurrenciesSoap
public class wwwXigniteComServices {
public class GetRealTimeRate_element {
public String Symbol;
private String[] Symbol_type_info = new String[]{'Symbol','http://www.xignite.com/service
//Generated by FuseIT WSDL2Apex (http://www.fuseit.com/Solutions/SFDC-Explorer/Help-WSDL-Parser.aspx)
// Warning: PaymentType - All the XmlSchemaElements in '<xsd:choice>' element are added as members of the class. Choice Members: creditCard bankAccount
// Warning: PaymentMaskedType - All the XmlSchemaElements in '<xsd:choice>' element are added as members of the class. Choice Members: bankAccount creditCard tokenInformation
// Warning: ProfileTransactionType - All the XmlSchemaElements in '<xsd:choice>' element are added as members of the class. Choice Members: profileTransRefund profileTransCaptureOnly profileTransAuthOnly profileTransPriorAuthCapture profileTransVoid profileTransAuthCapture
//Methods Included: CreateCustomerProfile
//Methods Excluded: IsAlive, AuthenticateTest, ARBCreateSubscription, ARBUpdateSubscription, ARBCancelSubscription, ARBGetSubscriptionStatus, ARBGetSubscriptionList, ARBGetSubscription, CreateCustomerProfileFromTransaction, CreateCustomerPaymentProfile, CreateCustomerShippingAdd
//Generated by FuseIT WSDL2Apex (http://www.fuseit.com/Solutions/SFDC-Explorer/Help-WSDL-Parser.aspx)
public class ebayApisCorecomponenttypes {
//Warning: Simple Content Types with Attributes are not supported by WebServiceCallout.invoke
public class AmountType {
public Double input;
private String[] input_type_info = new String[]{'input','http://www.w3.org/2001/XMLSchema','double','1','1','false'};
public String currencyID;
public String[] currencyID_att_info = new String[]{'currencyID'};
//Generated by FuseIT WSDL2Apex (http://www.fuseit.com/Solutions/SFDC-Explorer/Help-WSDL-Parser.aspx)
//Warning: '<xsd:any>' element type has been changed to dataType List<DOM.XmlNode> called anyElement
public class ebayApisEblbasecomponents {
//Warning: '<xsd:any>' element type has been changed to dataType List<DOM.XmlNode> called anyElement
public class AbstractRequestType {
public String[] DetailLevel;
public String ErrorLanguage;
public String Version;
//Generated by FuseIT WSDL2Apex (http://www.fuseit.com/Solutions/SFDC-Explorer/Help-WSDL-Parser.aspx)
public class ebayApisEnhanceddatatypes {
public class EnhancedCancelRecoupRequestDetailsType {
private String[] apex_schema_type_info = new String[]{'urn:ebay:apis:EnhancedDataTypes','true','false'};
private String[] field_order_type_info = new String[]{};
}
public class EnhancedCheckoutDataType {
private String[] apex_schema_type_info = new String[]{'urn:ebay:apis:EnhancedDataTypes','true','false'};
private String[] field_order_type_info = new String[]{};
public String Street;
public String Zip;
private String[] Email_type_info = new String[]{'Email','urn:ebay:api:PayPalAPI','EmailAddressType','1','1','false'};
private String[] Street_type_info = new String[]{'Street','urn:ebay:api:PayPalAPI','string','1','1','false'};
private String[] Zip_type_info = new String[]{'Zip','urn:ebay:api:PayPalAPI','string','1','1','false'};
private String[] apex_schema_type_info = new String[]{'urn:ebay:api:PayPalAPI','true','false'};
private String[] field_order_type_info = new String[]{'DetailLevel','ErrorLanguage','Version','Email','Street','Zip'};
}
public class AddressVerifyResponseType {
List<boolean> lockers = new List<boolean>();
for(integer s = 0; s< 1000; s++){
for (integer i = s; i < 1000; i += (s+1)){
if(s == 0) {
// First Student Opens every locker
lockers.add(true);
} else {
// nth student toggles every nth locker
lockers[i] = !lockers[i];
}

v43.0 - Summer '18

Database

Database-Info

  • SOQL_EXECUTE_BEGIN
  • SOQL_EXECUTE_END
  • SOSL_EXECUTE_BEGIN
  • SOSL_EXECUTE_END
  • QUERY_MORE_ITERATIONS
  • DML_BEGIN