@page {
size: landscape;
}
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
| /* | |
| ====================================================================== | |
| The following apex code demonstrates logging into another salesforce | |
| org via the SOAP/XML web service api and then using session id to | |
| query the standard REST API as well as the Chatter REST API. | |
| To run this code, simply copy and paste into execute anonymous, | |
| then replace the value of the first three variables accordingly. | |
| NOTES: | |
| (1) You'll need to create a remote site setting for both the login |
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
| git init # 初始化本地git仓库(创建新仓库) | |
| git config --global user.name "xxx" # 配置用户名 | |
| git config --global user.email "xxx@xxx.com" # 配置邮件 | |
| git config --global color.ui true # git status等命令自动着色 | |
| git config --global color.status auto | |
| git config --global color.diff auto | |
| git config --global color.branch auto | |
| git config --global color.interactive auto | |
| git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库 | |
| git status # 查看当前版本状态(是否修改) |
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
| [ | |
| 'Null', | |
| 'Undefined', | |
| 'Object', | |
| 'Array', | |
| 'String', | |
| 'Number', | |
| 'Boolean', | |
| 'Function', | |
| 'RegExp', |
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 > | |
| <!-- download the jstree from jstree.com and upload the dist directory as a static resource --> | |
| <link href="{!URLFOR($Resource.jsTree, 'themes/default/style.min.css')}" rel="stylesheet" /> | |
| <script src="{!URLFOR($Resource.jsTree, 'libs/jquery.js')}"></script> | |
| <script src="{!URLFOR($Resource.jsTree, 'jstree.min.js')}"></script> | |
| <script src="{!URLFOR($Resource.jsTree, 'jstree.min.js')}"></script> | |
| <!-- | |
| Change the remoteObjectModel name="Account and |
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
| List<String> sObjects = new List<String>(); | |
| for (SObjectType st : Schema.getGlobalDescribe().values()) { | |
| sObjects.add(st.getDescribe().getName()); | |
| } |
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 RollupSummaryUtils { | |
| public static void rollupSummary(List<Sobject> records, | |
| String parentLookupField, | |
| List<RollupSummaryUtils.FieldDefinition> fieldDefs, | |
| String filter) { | |
| Set<Id> parentIds = new Set<Id>(); | |
| for (Sobject so : records) { | |
| if (so.get(parentLookupField) != null) { | |
| parentIds.add((Id)so.get(parentLookupField)); |
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
| import sublime | |
| import os | |
| import json | |
| from .salesforce import xmltodict | |
| snippet_dir = sublime.packages_path() + "/haoide/config/snippets" | |
| trs = [] | |
| for dirpath, dirnames, filenames in os.walk(snippet_dir): | |
| for filename in filenames: | |
| print (filename) |
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
| <!-- | |
| We will create a family tree using just CSS(3) | |
| The markup will be simple nested lists | |
| --> | |
| <style> | |
| /*Now the CSS*/ | |
| * {margin: 0; padding: 0;} | |
| .tree ul { | |
| padding-top: 20px; position: relative; |
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
| /* boostrap progressbar */ | |
| .sr-only { | |
| position: absolute; | |
| width: 1px; | |
| height: 1px; | |
| padding: 0; | |
| margin: -1px; | |
| overflow: hidden; | |
| clip: rect(0,0,0,0); |
OlderNewer