Skip to content

Instantly share code, notes, and snippets.

View goody's full-sized avatar
💭
rimraf

Scot Goodhart goody

💭
rimraf
  • Luminix Inc.
  • Chicago/Coachella Valley
View GitHub Profile
@goody
goody / jsongen
Created May 22, 2015 15:48
json-generator
[
'{{repeat(15, 45)}}',
{
NoticeNumber: '{{guid()}}',
Client: '{{integer(1,1000)}}',
LossDate: '{{date(new Date(2014, 0, 1), new Date(), "MM/dd/YYYY")}}',
Coverage: '10',
Claimant: '{{firstName()}}' + ' '+ '{{surname()}}',
ReceivedDate: '{{date(new Date(2014, 0, 1), new Date(), "MM/dd/YYYY")}}',
Location: '{{city()}}',
@goody
goody / gist:c6bf46715b92688b3613
Created November 12, 2014 22:16
Fiddler POST
User-Agent: Fiddler
Content-Type : application/x-www-form-urlencoded
@goody
goody / eRegConflicts
Created October 22, 2014 22:04
Session Conflicts
//eReg uses Prototype
//eReg loads the external JS file at the top of the page so the scripts need to wait for the DOM to be loaded before running
document.observe("dom:loaded", function() {
//prototype observere the two day session input buttons and fire on clicks
$('session_9984406_6071522_2').observe('click', function(event) {
@goody
goody / Disable Context Menu
Created May 8, 2014 15:53
Disable context menu on img's
$('img').bind('contextmenu', function(e) {
return false;
});
// String to DateTime
String MyString;
MyString = "1999-09-01 21:34 PM";
//MyString = "1999-09-01 21:34 p.m."; //Depends on your regional settings
DateTime MyDateTime;
MyDateTime = new DateTime();
MyDateTime = DateTime.ParseExact(MyString, "yyyy-MM-dd HH:mm tt", null);