Skip to content

Instantly share code, notes, and snippets.

View KevM's full-sized avatar

Kevin Miller KevM

View GitHub Profile
Once upon a time there was a junior developer who had a simple ticket
assigned to him to make a new checkbox. The straightforward implementation
required a schema change to implement. Being a fastidious fellow, he wanted to
follow the proper procedure and searched the wiki.
The wiki described a procedure that required he run a particular script against
the qa database server and add the output to his ticket. He looked over the
script and found that it would not run on his macOS box.
After editing the script so that it would run on his laptop, he submitted the
@KevM
KevM / gist:6554377
Created September 13, 2013 18:35 — forked from lefthandedgoat/gist:6554142
**on** equals vs. contains compromise?
let on (u: string) =
try
wait pageTimeout (fun _ -> browser.Url = u)
with
| ex -> if browser.Url.Contains(u) = false then raise (CanopyOnException(sprintf "on check failed, expected expression '%s' got %s" u browser.Url));
@KevM
KevM / CreateCase.ps1
Created March 16, 2012 21:43 — forked from gsherman/CreateCase.ps1
PowerShell script that creates a case using a webservice based on the Dovetail SDK
## Dependencies:
## ConvertFrom-JSON which is available at: http://powershelljson.codeplex.com/
. .\ConvertFrom-JSON.ps1
$URL = "http://localhost/webservices/api/cases/create/"
$authToken = "7B118ABB-43C0-4215-A1D4-D536843728B5";
$propertyCode = "0595";
$summary = "This is the case title";
$notes = "These are case notes.";