Skip to content

Instantly share code, notes, and snippets.

@vdavez
Last active January 1, 2016 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vdavez/8136546 to your computer and use it in GitHub Desktop.
Save vdavez/8136546 to your computer and use it in GitHub Desktop.
The days that Congress is in session (built using the script below & at http://jsfiddle.net/YV8B3/). This will be updated in a few days to add a neat feature using http://beta.congress.gov/congressional-record/browse-by-date/ to automatically populate the days in session...
{
"congress": [
"2013-1-1",
"2013-1-2",
"2013-1-3",
"2013-1-4",
"2013-1-21",
"2013-1-22",
"2013-1-23",
"2013-1-29",
"2013-2-4",
"2013-2-12",
"2013-2-13",
"2013-2-14",
"2013-2-15",
"2013-2-25",
"2013-2-26",
"2013-2-27",
"2013-2-28",
"2013-3-4",
"2013-3-5",
"2013-3-6",
"2013-3-7",
"2013-3-11",
"2013-3-12",
"2013-3-13",
"2013-3-14",
"2013-3-18",
"2013-3-19",
"2013-3-20",
"2013-3-21",
"2013-4-9",
"2013-4-10",
"2013-4-11",
"2013-4-15",
"2013-4-16",
"2013-4-17",
"2013-4-18",
"2013-4-23",
"2013-4-24",
"2013-4-25",
"2013-4-26",
"2013-4-30",
"2013-5-3",
"2013-5-6",
"2013-5-7",
"2013-5-8",
"2013-5-9",
"2013-5-13",
"2013-5-14",
"2013-5-15",
"2013-5-16",
"2013-5-20",
"2013-5-21",
"2013-5-22",
"2013-5-23",
"2013-6-3",
"2013-6-4",
"2013-6-6",
"2013-6-10",
"2013-6-11",
"2013-6-12",
"2013-6-13",
"2013-6-17",
"2013-6-18",
"2013-6-19",
"2013-6-20",
"2013-6-24",
"2013-6-25",
"2013-6-26",
"2013-6-27",
"2013-7-9",
"2013-7-10",
"2013-7-11",
"2013-7-15",
"2013-7-16",
"2013-7-17",
"2013-7-18",
"2013-7-19",
"2013-7-23",
"2013-7-24",
"2013-7-25",
"2013-7-30",
"2013-7-31",
"2013-8-1",
"2013-8-2",
"2013-9-6",
"2013-9-9",
"2013-9-10",
"2013-9-11",
"2013-9-12",
"2013-9-16",
"2013-9-17",
"2013-9-18",
"2013-9-19",
"2013-9-23",
"2013-9-26",
"2013-9-27",
"2013-9-30",
"2013-10-1",
"2013-10-2",
"2013-10-3",
"2013-10-4",
"2013-10-5",
"2013-10-7",
"2013-10-8",
"2013-10-9",
"2013-10-10",
"2013-10-11",
"2013-10-12",
"2013-10-14",
"2013-10-15",
"2013-10-16",
"2013-10-28",
"2013-10-29",
"2013-10-30",
"2013-11-12",
"2013-11-13",
"2013-11-14",
"2013-11-18",
"2013-11-19",
"2013-11-20",
"2013-11-21",
"2013-12-9",
"2013-12-10",
"2013-12-11",
"2013-12-16",
"2013-12-19"
]
}
var house = [];
var senate = [];
var i = 0;
var j = 0;
var mList = "1/1,2,3,4,14,15,18,21,22,23,25,29/1,2,3,4,21,22,23,24,28,29,30,31\n2/1,4,5,6,8,12,13,14,15,25,26,27,28/4,7,11,12,13,14,15,25,26,27,28\n3/4,5,6,7,11,12,13,14,15,18,19,20,21,25/4,5,6,7,11,12,13,14,18,19,20,21,22\n4/9,10,11,12,15,16,17,18,19,23,24,25,26,30/8,9,10,11,15,16,17,18,22,23,24,25,26,30\n5/3,6,7,8,9,13,14,15,16,17,20,21,22,23,24/3,6,7,8,9,13,14,15,16,20,21,22,23\n6/3,4,5,6,10,11,12,13,14,17,18,19,20,24,25,26,27,28/3,4,6,7,10,11,12,13,17,18,19,20,21,24,25,26,27\n7/8,9,10,11,15,16,17,18,19,22,23,24,25,26,30,31/9,10,11,15,16,17,18,19,23,24,25,29,30,31\n8/1,2/1,2,12\n9/6,9,10,11,12,16,17,18,19,20,23,25,26,27,28,29,30/9,6,10,11,12,16,17,18,19,23,24,26,27,30\n10/1,2,3,4,5,7,8,9,10,11,12,14,15,16,22,23,24,28,29,30/1,2,3,4,5,7,8,9,10,11,12,13,14,15,16,28,29,30,31\n11/12,13,14,15,18,19,20,21,22/4,5,6,7,8,12,13,14,18,19,20,21\n12/2,3,4,5,9,10,11,12,16,19,23,26/9,10,11,15,16,17,18,19,20,24";
_.each(mList.split(/\n/g), function(m) {
var mLine = m.split(/\//g);
_.each(mLine[1].split(/,/g), function (d) {
house[i]="2013" + "-" + mLine[0] + "-" + d;
i++;
});
_.each(mLine[2].split(/,/g), function (d) {
senate[j]="2013" + "-" + mLine[0] + "-" + d;
j++;
});
});
var o = JSON.stringify({"house":house,"senate":senate});
console.log(o);
{
"congress": [
"2013-1-1",
"2013-1-2",
"2013-1-3",
"2013-1-4",
"2013-1-14",
"2013-1-15",
"2013-1-18",
"2013-1-21",
"2013-1-22",
"2013-1-23",
"2013-1-25",
"2013-1-29",
"2013-2-1",
"2013-2-4",
"2013-2-5",
"2013-2-6",
"2013-2-8",
"2013-2-12",
"2013-2-13",
"2013-2-14",
"2013-2-15",
"2013-2-25",
"2013-2-26",
"2013-2-27",
"2013-2-28",
"2013-3-4",
"2013-3-5",
"2013-3-6",
"2013-3-7",
"2013-3-11",
"2013-3-12",
"2013-3-13",
"2013-3-14",
"2013-3-15",
"2013-3-18",
"2013-3-19",
"2013-3-20",
"2013-3-21",
"2013-3-25",
"2013-4-9",
"2013-4-10",
"2013-4-11",
"2013-4-12",
"2013-4-15",
"2013-4-16",
"2013-4-17",
"2013-4-18",
"2013-4-19",
"2013-4-23",
"2013-4-24",
"2013-4-25",
"2013-4-26",
"2013-4-30",
"2013-5-3",
"2013-5-6",
"2013-5-7",
"2013-5-8",
"2013-5-9",
"2013-5-13",
"2013-5-14",
"2013-5-15",
"2013-5-16",
"2013-5-17",
"2013-5-20",
"2013-5-21",
"2013-5-22",
"2013-5-23",
"2013-5-24",
"2013-6-3",
"2013-6-4",
"2013-6-5",
"2013-6-6",
"2013-6-10",
"2013-6-11",
"2013-6-12",
"2013-6-13",
"2013-6-14",
"2013-6-17",
"2013-6-18",
"2013-6-19",
"2013-6-20",
"2013-6-24",
"2013-6-25",
"2013-6-26",
"2013-6-27",
"2013-6-28",
"2013-7-8",
"2013-7-9",
"2013-7-10",
"2013-7-11",
"2013-7-15",
"2013-7-16",
"2013-7-17",
"2013-7-18",
"2013-7-19",
"2013-7-22",
"2013-7-23",
"2013-7-24",
"2013-7-25",
"2013-7-26",
"2013-7-30",
"2013-7-31",
"2013-8-1",
"2013-8-2",
"2013-9-6",
"2013-9-9",
"2013-9-10",
"2013-9-11",
"2013-9-12",
"2013-9-16",
"2013-9-17",
"2013-9-18",
"2013-9-19",
"2013-9-20",
"2013-9-23",
"2013-9-25",
"2013-9-26",
"2013-9-27",
"2013-9-28",
"2013-9-29",
"2013-9-30",
"2013-10-1",
"2013-10-2",
"2013-10-3",
"2013-10-4",
"2013-10-5",
"2013-10-7",
"2013-10-8",
"2013-10-9",
"2013-10-10",
"2013-10-11",
"2013-10-12",
"2013-10-14",
"2013-10-15",
"2013-10-16",
"2013-10-22",
"2013-10-23",
"2013-10-24",
"2013-10-28",
"2013-10-29",
"2013-10-30",
"2013-11-12",
"2013-11-13",
"2013-11-14",
"2013-11-15",
"2013-11-18",
"2013-11-19",
"2013-11-20",
"2013-11-21",
"2013-11-22",
"2013-12-2",
"2013-12-3",
"2013-12-4",
"2013-12-5",
"2013-12-9",
"2013-12-10",
"2013-12-11",
"2013-12-12",
"2013-12-16",
"2013-12-19",
"2013-12-23",
"2013-12-26",
"2013-1-24",
"2013-1-28",
"2013-1-30",
"2013-1-31",
"2013-2-7",
"2013-2-11",
"2013-3-22",
"2013-4-8",
"2013-4-22",
"2013-6-7",
"2013-6-21",
"2013-7-29",
"2013-8-12",
"2013-9-24",
"2013-10-13",
"2013-10-31",
"2013-11-4",
"2013-11-5",
"2013-11-6",
"2013-11-7",
"2013-11-8",
"2013-12-15",
"2013-12-17",
"2013-12-18",
"2013-12-20",
"2013-12-24"
]
}
{
"house": [
"2013-1-1",
"2013-1-2",
"2013-1-3",
"2013-1-4",
"2013-1-14",
"2013-1-15",
"2013-1-18",
"2013-1-21",
"2013-1-22",
"2013-1-23",
"2013-1-25",
"2013-1-29",
"2013-2-1",
"2013-2-4",
"2013-2-5",
"2013-2-6",
"2013-2-8",
"2013-2-12",
"2013-2-13",
"2013-2-14",
"2013-2-15",
"2013-2-25",
"2013-2-26",
"2013-2-27",
"2013-2-28",
"2013-3-4",
"2013-3-5",
"2013-3-6",
"2013-3-7",
"2013-3-11",
"2013-3-12",
"2013-3-13",
"2013-3-14",
"2013-3-15",
"2013-3-18",
"2013-3-19",
"2013-3-20",
"2013-3-21",
"2013-3-25",
"2013-4-9",
"2013-4-10",
"2013-4-11",
"2013-4-12",
"2013-4-15",
"2013-4-16",
"2013-4-17",
"2013-4-18",
"2013-4-19",
"2013-4-23",
"2013-4-24",
"2013-4-25",
"2013-4-26",
"2013-4-30",
"2013-5-3",
"2013-5-6",
"2013-5-7",
"2013-5-8",
"2013-5-9",
"2013-5-13",
"2013-5-14",
"2013-5-15",
"2013-5-16",
"2013-5-17",
"2013-5-20",
"2013-5-21",
"2013-5-22",
"2013-5-23",
"2013-5-24",
"2013-6-3",
"2013-6-4",
"2013-6-5",
"2013-6-6",
"2013-6-10",
"2013-6-11",
"2013-6-12",
"2013-6-13",
"2013-6-14",
"2013-6-17",
"2013-6-18",
"2013-6-19",
"2013-6-20",
"2013-6-24",
"2013-6-25",
"2013-6-26",
"2013-6-27",
"2013-6-28",
"2013-7-8",
"2013-7-9",
"2013-7-10",
"2013-7-11",
"2013-7-15",
"2013-7-16",
"2013-7-17",
"2013-7-18",
"2013-7-19",
"2013-7-22",
"2013-7-23",
"2013-7-24",
"2013-7-25",
"2013-7-26",
"2013-7-30",
"2013-7-31",
"2013-8-1",
"2013-8-2",
"2013-9-6",
"2013-9-9",
"2013-9-10",
"2013-9-11",
"2013-9-12",
"2013-9-16",
"2013-9-17",
"2013-9-18",
"2013-9-19",
"2013-9-20",
"2013-9-23",
"2013-9-25",
"2013-9-26",
"2013-9-27",
"2013-9-28",
"2013-9-29",
"2013-9-30",
"2013-10-1",
"2013-10-2",
"2013-10-3",
"2013-10-4",
"2013-10-5",
"2013-10-7",
"2013-10-8",
"2013-10-9",
"2013-10-10",
"2013-10-11",
"2013-10-12",
"2013-10-14",
"2013-10-15",
"2013-10-16",
"2013-10-22",
"2013-10-23",
"2013-10-24",
"2013-10-28",
"2013-10-29",
"2013-10-30",
"2013-11-12",
"2013-11-13",
"2013-11-14",
"2013-11-15",
"2013-11-18",
"2013-11-19",
"2013-11-20",
"2013-11-21",
"2013-11-22",
"2013-12-2",
"2013-12-3",
"2013-12-4",
"2013-12-5",
"2013-12-9",
"2013-12-10",
"2013-12-11",
"2013-12-12",
"2013-12-16",
"2013-12-19",
"2013-12-23",
"2013-12-26"
],
"senate": [
"2013-1-1",
"2013-1-2",
"2013-1-3",
"2013-1-4",
"2013-1-21",
"2013-1-22",
"2013-1-23",
"2013-1-24",
"2013-1-28",
"2013-1-29",
"2013-1-30",
"2013-1-31",
"2013-2-4",
"2013-2-7",
"2013-2-11",
"2013-2-12",
"2013-2-13",
"2013-2-14",
"2013-2-15",
"2013-2-25",
"2013-2-26",
"2013-2-27",
"2013-2-28",
"2013-3-4",
"2013-3-5",
"2013-3-6",
"2013-3-7",
"2013-3-11",
"2013-3-12",
"2013-3-13",
"2013-3-14",
"2013-3-18",
"2013-3-19",
"2013-3-20",
"2013-3-21",
"2013-3-22",
"2013-4-8",
"2013-4-9",
"2013-4-10",
"2013-4-11",
"2013-4-15",
"2013-4-16",
"2013-4-17",
"2013-4-18",
"2013-4-22",
"2013-4-23",
"2013-4-24",
"2013-4-25",
"2013-4-26",
"2013-4-30",
"2013-5-3",
"2013-5-6",
"2013-5-7",
"2013-5-8",
"2013-5-9",
"2013-5-13",
"2013-5-14",
"2013-5-15",
"2013-5-16",
"2013-5-20",
"2013-5-21",
"2013-5-22",
"2013-5-23",
"2013-6-3",
"2013-6-4",
"2013-6-6",
"2013-6-7",
"2013-6-10",
"2013-6-11",
"2013-6-12",
"2013-6-13",
"2013-6-17",
"2013-6-18",
"2013-6-19",
"2013-6-20",
"2013-6-21",
"2013-6-24",
"2013-6-25",
"2013-6-26",
"2013-6-27",
"2013-7-9",
"2013-7-10",
"2013-7-11",
"2013-7-15",
"2013-7-16",
"2013-7-17",
"2013-7-18",
"2013-7-19",
"2013-7-23",
"2013-7-24",
"2013-7-25",
"2013-7-29",
"2013-7-30",
"2013-7-31",
"2013-8-1",
"2013-8-2",
"2013-8-12",
"2013-9-9",
"2013-9-6",
"2013-9-10",
"2013-9-11",
"2013-9-12",
"2013-9-16",
"2013-9-17",
"2013-9-18",
"2013-9-19",
"2013-9-23",
"2013-9-24",
"2013-9-26",
"2013-9-27",
"2013-9-30",
"2013-10-1",
"2013-10-2",
"2013-10-3",
"2013-10-4",
"2013-10-5",
"2013-10-7",
"2013-10-8",
"2013-10-9",
"2013-10-10",
"2013-10-11",
"2013-10-12",
"2013-10-13",
"2013-10-14",
"2013-10-15",
"2013-10-16",
"2013-10-28",
"2013-10-29",
"2013-10-30",
"2013-10-31",
"2013-11-4",
"2013-11-5",
"2013-11-6",
"2013-11-7",
"2013-11-8",
"2013-11-12",
"2013-11-13",
"2013-11-14",
"2013-11-18",
"2013-11-19",
"2013-11-20",
"2013-11-21",
"2013-12-9",
"2013-12-10",
"2013-12-11",
"2013-12-15",
"2013-12-16",
"2013-12-17",
"2013-12-18",
"2013-12-19",
"2013-12-20",
"2013-12-24"
]
}
@bttmly
Copy link

bttmly commented Aug 12, 2014

Do you have a clever way of generating these automatically? It's unbelievable how hard it is to find this data in a reasonable form!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment