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 with sharing virtual class RestClient { | |
| Public class RestClientException extends Exception {} | |
| /* | |
| * class variable creation - DO NOT EDIT | |
| */ | |
| Public Map<String,String> headers; | |
| Public String url; | |
| Public String method; |
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 with sharing class CommunityDebuggerCtrl { | |
| public String failingPageResponse { get; set; } | |
| String toLoad {get; private set;} | |
| Map<String, String> params {get; private set;} | |
| String queryString = '?'; | |
| public CommunityDebuggerCtrl() { | |
| params = ApexPages.currentPage().getParameters(); | |
| toLoad = (String) params.get('page'); |
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
| <apex:page controller="CommunityDebuggerCtrl" action="{!fetchFailingPage}" showHeader="false" sidebar="false" > | |
| <apex:outputText id="failingPageResponse" escape="false" value="{!failingPageResponse}" /> | |
| </apex:page> |
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
| toolingSoapSForceCom.SessionHeader_element sessionEl = new toolingSoapSForceCom.SessionHeader_element(); | |
| sessionEl.sessionId = UserInfo.getSessionId(); | |
| toolingSoapSForceCom.SforceService service = new toolingSoapSForceCom.SforceService(); | |
| service.SessionHeader = sessionEl; | |
| //service.endpoint_x = //Adjust this to your endpoint, if needed... | |
| toolingSoapSForceCom.ApexCodeCoverageAggregateQueryResult queryResult = service.queryApexCodeCoverageAggregate('Select NumLinesCovered From ApexCodeCoverageAggregate'); | |
| System.debug(queryResult); |
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
| angular.module('myApp').config(['$httpProvider', function($httpProvider) { | |
| delete $httpProvider.defaults.headers.common['X-Requested-With']; | |
| }); |
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
| <!doctype html> | |
| <html xmlns:ng="http://angularjs.org"> | |
| <body> | |
| Hello {{'World'}}! | |
| <script src="http://code.angularjs.org/angular.js"></script> | |
| <script> | |
| angular.element(document).ready(function() { | |
| RemoteJSCall.then(function(results){ | |
| //manipulate results if needed. | |
| //do whatever with results to get app ready |
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
| // Write a general-purpose reducer that excludes items based on a predicate | |
| function excludeReducer(predicate) { | |
| return function(newArray, item) { | |
| return predicate(item) ? newArray : newArray.concat(item); | |
| } | |
| } | |
| function excludeIdReducer(id) { | |
| return excludeReducer(function(item) { |
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
| app.filter('Autolink', ['$sce', function($sce){ | |
| var urlPattern = /(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?/gi; | |
| return function(text, target, otherProp) { | |
| if(text === undefined || | |
| text === null ) { return $sce.trustAsHtml(text);} | |
| angular.forEach(text.toString().match(urlPattern), function(url) { | |
| text = text.replace(url, "<a target=\"" + target + "\" href="+ url + ">" + url.substring(0,30) +"</a>"); | |
| }); | |
| return $sce.trustAsHtml(text); | |
| }; |
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
| angular./** | |
| * app Module | |
| * | |
| * skeleton app module for skeleton directive. | |
| */ | |
| var app = angular.module('app', []) | |
| .directive('ng', ['', function(){ | |
| // Runs during compile | |
| return { | |
| name: 'modelAndBind', |
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
| [Error] Error: 'undefined' is not an object (evaluating 'self.scope.$form.$data[$attrs.eName] = newVal') | |
| https://c.cs13.visual.force.com/resource/1384277518000/ccpp/ccpp/js/xeditable.js:302:33 | |
| $digest@https://c.cs13.visual.force.com/resource/1384277518000/ccpp/ccpp/js/angular.js:10569:29 | |
| $apply@https://c.cs13.visual.force.com/resource/1384277518000/ccpp/ccpp/js/angular.js:10802:31 | |
| done@https://c.cs13.visual.force.com/resource/1384277518000/ccpp/ccpp/js/angular.js:6937:51 | |
| completeRequest@https://c.cs13.visual.force.com/resource/1384277518000/ccpp/ccpp/js/angular.js:7102:15 | |
| onreadystatechange@https://c.cs13.visual.force.com/resource/1384277518000/ccpp/ccpp/js/angular.js:7058:26 | |
| (anonymous function) (angular.js, line 8296) | |
| (anonymous function) (angular.js, line 5967) | |
| $digest (angular.js, line 10581) |
NewerOlder