Skip to content

Instantly share code, notes, and snippets.

View egravert's full-sized avatar
🤦‍♂️

Eric Gravert egravert

🤦‍♂️
View GitHub Profile
on run {input, parameters}
if appIsRunning("Safari") then
tell application "Safari"
tell front window
open location input
end tell
activate
end tell
else
tell application "Safari"

Keybase proof

I hereby claim:

  • I am egravert on github.
  • I am messorian (https://keybase.io/messorian) on keybase.
  • I have a public key whose fingerprint is B102 66CA 855B BD5E 2BDA D401 FCBE C9A2 BFDC DDA6

To claim this, I am signing this object:

private static ServiceResponse PerformSteps(params Func<ServiceResponse>[] webServiceSteps)
{
ServiceResponse result = null;
foreach (var webServiceStep in webServiceSteps)
{
result = webServiceStep();
if (result.Result == ResponseStatus.Error)
return result;
}
return result;
return PerformSteps(() => LogInUser(credentials),
() => CheckUserHasRequiredPermissions("access web services"),
() => ValidateLotLevelInformation(lotLevel3Information),
() => ValidateLotNumber(lotLevel3Information.LotNumber),
() => SubmitMessage(message));