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
try{ | |
//statements that might generate exceptions | |
} catch (Exception e) { | |
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); | |
String[] toAddresses = new String[] {''}; | |
mail.setToAddresses(toAddresses); | |
mail.setReplyTo('support@acme.com'); | |
mail.setSenderDisplayName('Salesforce Support'); | |
mail.setSubject('Exception'); | |
mail.setBccSender(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
Map<String, Schema.SObjectField> fieldMap = Schema.SObjectType.<<Object_API_Name>>.fields.getMap(); | |
//constructing a set of fieldnames | |
Set<String> keySet = fieldMap.keySet(); | |
String soql = 'SELECT '; | |
for(String x : keySet) { | |
//this might be avoidable - will look at it in later version but currently pulls in the API Field name | |
Schema.DescribeFieldResult r = fieldMap.get(x).getDescribe(); | |
//appending the fieldname to the query string | |
soql += r.getName() + ', '; |
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
elems = document.getElementsByTagName("select"); | |
for (x in elems ) { | |
console.log(elems[x]); | |
elems[x].children[1].selected = true; | |
} |
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
elems = document.getElementsByTagName("input"); | |
for( x in elems ){ | |
if(elems[x].type == "checkbox") elems[x].checked = 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
// ---- | |
// Sass (v3.3.0.rc.5) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
/* | |
These are the normal comments | |
*/ | |
// These wont make it to the other end |
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
//Object Array with duplicate data | |
var objArr = [{ | |
"name": "abc" | |
}, { | |
"name": "abc" | |
}, { | |
"name": "def" | |
}, { | |
"name": "def" | |
}, { |
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:component > | |
<!-- Attribute Definitions --> | |
<apex:attribute name="BorderColor" type="String" required="true" description=""></apex:attribute> | |
<apex:attribute name="Width" type="String" required="true" description=""></apex:attribute> | |
<apex:attribute name="Height" type="String" required="true" description=""></apex:attribute> | |
<apex:attribute name="BackColor" type="String" required="true" description=""></apex:attribute> | |
<apex:attribute name="BackColor" type="String" required="true" description=""></apex:attribute> | |
<apex:attribute name="BorderSize" type="String" required="true" description=""></apex:attribute> | |
<apex:attribute name="ImageUrl" type="String" required="false" description=""></apex:attribute> | |
<apex:attribute name="Message" type="String" required="false" description=""></apex:attribute> |
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
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/dvora/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="cloud" | |
# Uncomment the following line to use case-sensitive completion. |
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
{ | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"theme": "Material-Theme-Darker.sublime-theme", | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme", | |
"overlay_scroll_bars": "enabled", | |
"line_padding_top": 3, | |
"line_padding_bottom": 3, |
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 the device | |
# deviceType can be either "phone" or "desktop" | |
Framer.DeviceView.Devices["custom"] = | |
"deviceType": "phone" | |
"screenWidth": 768 | |
"screenHeight": 442 | |
"deviceImage": "images/Modern_TV.png" | |
"deviceImageWidth": 800 | |
"deviceImageHeight": 583 | |
OlderNewer