Skip to content

Instantly share code, notes, and snippets.

@mkdjns
mkdjns / Keybase.md
Last active July 28, 2018 08:33
Keybase.io verification

Keybase proof

I hereby claim:

  • I am mkdjns on github.
  • I am mkdjns (https://keybase.io/mkdjns) on keybase.
  • I have a public key ASBSNtSxLbK0q7UAnwJzIzD2TF8kZU5pzIHLzZZC0xDC4go

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am mkdjns on github.
  • I am veterankamikaze (https://keybase.io/veterankamikaze) on keybase.
  • I have a public key whose fingerprint is 8CC5 D2B6 FC1C 8EDA 44E7 81A8 12BA A823 BED2 89AF

To claim this, I am signing this object:

@mkdjns
mkdjns / BatchExecutor.cls
Last active January 7, 2016 11:22
When executing the test method shown in test_BatchExecutor.cls, the test will fail with "System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out". All classes involved are API 28.
public with sharing class BatchExecutor {
public enum ExecuteStep {Job1, Job2};
public static string RunJob(ExecuteStep completedStep){
string jobId;
if(completedStep == ExecuteStep.Job1){
jobid = Database.executeBatch(new reallyImportantWork(), 200);