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
/* Better styles for embedding GitHub Gists */ | |
.gist{font-size:13px;line-height:18px;margin-bottom:20px;width:100%} | |
.gist pre{font-family:Menlo,Monaco,'Bitstream Vera Sans Mono','Courier New',monospace !important} | |
.gist-meta{font-family:Helvetica,Arial,sans-serif;font-size:13px !important} | |
.gist-meta a{color:#26a !important;text-decoration:none} | |
.gist-meta a:hover{color:#0e4071 !important} |
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 standardController="Lead"> | |
<style> | |
.fieldempty | |
{ | |
background-color: yellow; | |
} | |
.fieldpopulated | |
{ | |
background-color: white; |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>todo</title> | |
<script type="text/javascript" | |
src="http://codeorigin.jquery.com/jquery-1.10.2.min.js"> | |
</script> | |
<script type="text/javascript" | |
src="http://cdnjs.cloudflare.com/ajax/libs/knockout/2.3.0/knockout-min.js"> |
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 > | |
<!-- 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 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 Governor1{ | |
private static final integer ONE = 1; | |
private static final String ONE_MESSAGE = 'ええぃ!セールスフォースのガバナは化け物か!'; | |
private Governor1(){} | |
public static void check(){ | |
Governor1.check(false); | |
} |
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 with sharing class JoinController { | |
// The from and through dates are hard-coded for simplicity's sake. | |
// Should change to parameters or input or something else. | |
public String getPageViewsJson() { | |
List<Page_View_Summary__c> pvs = [ | |
SELECT Date__c, Number_of_Views__c | |
FROM Page_View_Summary__c | |
WHERE Date__c >= 2014-04-01 | |
AND Date__c <= 2014-04-30 |
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
//Create a resource mapping | |
// - * wildcard must be preceded and followed by a '/' unless * is end character | |
// - resource must start with '/' | |
// - one mapping per class | |
// - class must be global | |
@RestResource(urlMapping='/languages/*') | |
global with sharing class LanguageService { | |
// ROUTES: |
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
<aura:event type="APPLICATION" description="Add to cart event."> | |
<aura:attribute name="product" type="Product__c"/> | |
</aura:event> |
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 AutocompleteController { | |
@AuraEnabled | |
public static List<sObject> getSuggestions(String sObjectType, String term, String fieldsToGet, Integer limitSize) { | |
// could add in logic to remove possible duplicate fields | |
String fields = fieldsToGet.length() > 0 ? ',' + fieldsToGet : ''; | |
String soql = | |
' SELECT Name, Id ' + String.escapeSingleQuotes(fields) + | |
' FROM ' + String.escapeSingleQuotes(sObjectType) + | |
' WHERE Name Like \'' + String.escapeSingleQuotes(term) + '%\'' + |
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
{ | |
"name": "retrieve_folders", | |
"dependencies": { | |
"bluebird": "^2.4.2", | |
"dotenv": "^0.4.0", | |
"jsforce": "^1.3.1", | |
"lodash": "^2.4.1", | |
"underscore": "^1.7.0", | |
"unzip": "^0.1.11" | |
} |
OlderNewer