⌘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
/* | |
Expression Description | |
0 0 13 * * ? Class runs every day at 1 PM. | |
0 0 22 ? * 6L Class runs the last Friday of every month at 10 PM. | |
0 0 10 ? * MON-FRI Class runs Monday through Friday at 10 AM. | |
0 0 20 * * ? 2010 Class runs every day at 8 PM during the year 2010. | |
*/ | |
String onTheHour = '0 0 * * * ?'; | |
String onTheHalfHour = '0 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
global class MassDelete implements Database.Batchable<sObject> | |
{ | |
global final string query; | |
global MassDelete(String q) | |
{ | |
query = q; | |
} | |
global Database.QueryLocator start(Database.BatchableContext BC) |
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 layout="none"> | |
<apex:attribute name="statement" | |
description="The Knockout containerless statement to insert." | |
type="String" | |
required="false" | |
/> | |
<apex:attribute name="close" | |
description="Flag that determines whether this is an opening or closing statement for Knockout." | |
type="Boolean" |
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 AdvancedMath | |
{ | |
public static Double standardDeviation(Double[] numbers) | |
{ | |
//determine the sum of the range of numbers | |
Double sum = 0; | |
for(Double d : numbers) | |
{ | |
sum += d; | |
} |
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) { |
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 ObjectUtil | |
{ | |
public static String getObjectRecordTypeId(SObjectType sObjectType, String recordTypeName) | |
{ | |
//Generate a map of tokens for all the Record Types for the desired object | |
Map<String, RecordTypeInfo> recordTypeInfo = sObjectType.getDescribe().getRecordTypeInfosByName(); | |
system.debug('RECORD TYPES:' + recordTypeInfo); | |
if(!recordTypeInfo.containsKey(recordTypeName)) | |
throw new RecordTypeException('Record type "'+ recordTypeName +'" does not exist.'); |
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
angular.module('EventUtil', []) | |
.factory('broadcast', ['$rootScope', function($rootScope){ | |
return function(eventName, payload){ | |
$rootScope.$broadcast(eventName, payload); | |
}; | |
}]) | |
.factory('listen', ['$rootScope', function($rootScope){ | |
return function(eventName, listener){ | |
$rootScope.$on(eventName, listener); | |
}; |
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 showHeader="false" | |
sidebar="false" | |
standardStylesheets="false" | |
applyHtmlTag="false" | |
applyBodyTag="false" | |
tabStyle="[TAB_STYLE]"> | |
<html lang="en"> | |
<head> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> |
OlderNewer