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
| <project name="Sample usage of Salesforce Ant tasks" default="test" basedir="." xmlns:sf="antlib:com.salesforce"> | |
| <property file="build.properties"/> | |
| <property environment="env"/> | |
| <taskdef resource="com/salesforce/antlib.xml" uri="antlib:com.salesforce"> | |
| <classpath> | |
| <pathelement location="../ant-salesforce.jar" /> | |
| </classpath> | |
| </taskdef> |
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 ts = ts || {}; | |
| var sortStatus = {}; | |
| ts.getValue = function(tdElem){ | |
| var inputElemLst = $(tdElem).find("input:not([type='hidden']):first"); | |
| return inputElemLst.length ? inputElemLst.val() : $(tdElem).text(); | |
| }; | |
| ts.handleSortClick = function(event){ |
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 delay = (function(){ | |
| var timer = 0; | |
| return function(callback,param, ms){ | |
| clearTimeout (timer); | |
| timer = setTimeout(function(){ | |
| callback(param); | |
| }, ms); | |
| }; | |
| })(); |
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 DeferredTest { | |
| @RemoteAction | |
| public static String remoteActionOne(){ | |
| return 'one'; | |
| } | |
| @RemoteAction | |
| public static String remoteActionTwo(){ | |
| return 'two'; | |
| } |
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
| <?php | |
| define('MAILGUN_URL', 'https://api.mailgun.net/v3/DOMAIN_NAME'); | |
| define('MAILGUN_KEY', 'KEY'); | |
| function sendmailbymailgun($to,$toname,$mailfromnane,$mailfrom,$subject,$html,$text,$tag,$replyto){ | |
| $array_data = array( | |
| 'from'=> $mailfromname .'<'.$mailfrom.'>', | |
| 'to'=>$toname.'<'.$to.'>', | |
| 'subject'=>$subject, | |
| 'html'=>$html, |
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
| <input class="input-field" /> | |
| $(".input-field").on("keyup blur",function(event){ | |
| var valStr = $(this).val(); | |
| if($.trim(valStr) == '.' || $.trim(valStr) == '-'){ | |
| return true; | |
| } | |
| if(isNumeric(valStr)){ |
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 AuthCallout { | |
| public void basicAuthCallout(){ | |
| HttpRequest req = new HttpRequest(); | |
| req.setEndpoint('http://www.yahoo.com'); | |
| req.setMethod('GET'); | |
| // Specify the required user name and password to access the endpoint | |
| // As well as the header and header information | |
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
| /* | |
| Generic Styling, for Desktops/Laptops | |
| Reference : https://css-tricks.com/responsive-data-tables/ | |
| */ | |
| table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| } | |
| /* Zebra striping */ | |
| tr:nth-of-type(odd) { |
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> | |
| <head> | |
| <title></title> | |
| <!--<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script> | |
| <script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>--> | |
| <script src="./jquery-1.11.3.js"></script> | |
| </head> | |
| <style type="text/css"> | |
| .target{ |
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> | |
| <head> | |
| <style type="text/css"> | |
| #map-canvas { | |
| height : 500px; | |
| } | |
| </style> | |
| <title></title> |