Skip to content

Instantly share code, notes, and snippets.

View matthewplunkett's full-sized avatar

Matthew Plunkett matthewplunkett

View GitHub Profile
@matthewplunkett
matthewplunkett / Age-dependent denominator
Created December 5, 2013 08:21
Age-dependent denominator ("children who turn 2 years of age during measurement period")
where datediff(year,dob,dateadd(year,datediff(year,0,getdate()),0))=2
@matthewplunkett
matthewplunkett / 0_reuse_code.js
Created November 21, 2013 10:42
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
where datediff(day,enc.encounterdate,(dateadd(qq,datediff(qq,0,getdate())+1,0))) between 1 and 365