Skip to content

Instantly share code, notes, and snippets.

View ctrombley's full-sized avatar

Chris Trombley ctrombley

View GitHub Profile
@ctrombley
ctrombley / generate_eligibility_file.rb
Last active June 1, 2016 22:00
generate eligibility file
filename = "eligibility_file_scenario_1.csv"
headings = ['ValidationData',
'RelatedID',
'Birthdate',
'FirstName',
'LastName',
'Gender',
'Address',
'Address2',
@ctrombley
ctrombley / mvc_accept_types.txt
Last active May 4, 2016 16:34
MVC AcceptTypes example
if (Request.AcceptTypes.Contains("text/html")) {
return View();
}
else if (Request.AcceptTypes.Contains("application/json"))
{
return Json( new { id=1, value="new" } );
}