⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
HYPERLINK( | |
/* If they're in Lightning */ | |
IF($User.UIThemeDisplayed="Theme4d", | |
/* Use Lightning syntax, optimized to avoid full page reload */ | |
"#/sObject/00OE0000003BLQi/view?fv0=", | |
/* Otherwise use Classic syntax */ | |
"/00OE0000003BLQi?pv0=") |
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
/* | |
* Hard coding your Salesforce URL in places like Email Tempaltes and Apex Classes is a worst practice, but some people do it. | |
* These URLs will break when you turn on my domain, since your URL changes. | |
* More on this here: https://help.salesforce.com/apex/HTViewSolution?urlname=Updating-Hard-Coded-References-FAQ | |
* Here are some quick and dirty checks for your Salesforce URL being hard coded in: | |
* EmailTemplates, WebLinks, ApexClasses, Visualforce Pages, and Triggers. | |
* Ideally you would retrieve all metadata and search it, but this will find some of the low hanging problems easily. | |
* | |
* Usage: | |
* - Copy / Paste this into Salesforce Execute Anonymous window. |
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
/** | |
* Interceptor | |
* Implements functionality to catch various requests and fire events when they happen. This is generally to ensure | |
* that responses from the server are handled in a uniform fashion across the application. Also, by firing events | |
* it allows to have any number of handlers attach to the response. | |
* | |
* @author Kirk Bushell | |
* @date 28th March 2013 | |
*/ | |
var module = angular.module('core.interceptor', []); |
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
var express = require('express'); | |
var oauth = require('oauth'); | |
var oa; | |
var app = express.createServer(); | |
app.get('/', function (req, res) { | |
res.end('<!DOCTYPE html><meta charset=utf-8><form action=/authorize><label>Client ID: <input type=text name=client_id required autofocus></label><br><label>Client Secret: <input type=text name=client_secret required></label><br><label>Scope: <input type=text name=scope required></label><br><input type=submit>'); | |
}); | |
app.get('/authorize', function (req, res) { |