The old version is still viewable here, but the code and the data has been much improved and now lives at:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set up a scheduled job to fetch Bills with node-cron | |
// https://github.com/ncb000gt/node-cron | |
// | |
// Just add this to your server.js (or app.js) file | |
var CronJob = require('cron').CronJob; | |
var job = new CronJob({ | |
cronTime: '00 30 11 * * 1-5', | |
onTick: function() { | |
// Code goes here | |
}, |
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 13 columns, instead of 6. in line 7.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member_Id,Dods_Id,Pims_Id,DisplayAs,ListAs,FullTitle,LayingMinisterName,DateOfBirth,Gender,House,MemberFrom,HouseStartDate, | |
172,25790,3572,Ms Diane Abbott,"Abbott, Diane",Ms Diane Abbott MP,null,1953-09-27T00:00:00,F,Commons,Hackney North and Stoke Newington,1987-06-11T00:00:00, | |
4212,80556,5905,Debbie Abrahams,"Abrahams, Debbie",Debbie Abrahams MP,null,1960-09-15T00:00:00,F,Commons,Oldham East and Saddleworth,2011-01-13T00:00:00, | |
4057,35435,5556,Nigel Adams,"Adams, Nigel",Nigel Adams MP,null,1966-11-30T00:00:00,M,Commons,Selby and Ainsty,2010-05-06T00:00:00, | |
1586,35516,4734,Adam Afriyie,"Afriyie, Adam",Adam Afriyie MP,null,1965-08-04T00:00:00,M,Commons,Windsor,2005-05-05T00:00:00, | |
4038,83154,5563,Heidi Alexander,"Alexander, Heidi",Heidi Alexander MP,null,1975-04-17T00:00:00,F,Commons,Lewisham East,2010-05-06T00:00:00, | |
4138,58561,5735,Rushanara Ali,"Ali, Rushanara",Rushanara Ali MP,null,1975-03-14T00:00:00,F,Commons,Bethnal Green and Bow,2010-05-06T00:00:00, | |
364,25774,3636,Mr Graham Allen,"Allen, Graham",Mr Gr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<h2>Lookup by Query</h2> | |
<textarea cols="100" rows="10" id="query-result"></textarea> | |
<hr/> | |
<h2>Lookup by URI</h2> | |
<textarea cols="100" rows="10" id="uri-result"></textarea> | |
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iso2 | alias | |
---|---|---|
BM | Islands of Bermuda | |
BM | The Islands of Bermuda | |
BM | Bermudas | |
BM | The Bermudas | |
BM | Somers Isles | |
BM | The Somers Isles | |
BS | Bahama | |
BS | Bahamas | |
BS | The Bahamas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Append data to a Google Spreadsheet | |
* | |
* You will need a file called '.env' with the following values: | |
* | |
* - GOOGLE_ID (Google oAuth Client ID) | |
* - GOOGLE_SECRET (Google oAuth Client Secret) | |
* - GOOGLE_REFRESH_TOKEN (Google oAuth Refresh Token) | |
* - GOOGLE_SPREADSHEET_ID (Google Spreadsheet ID) | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function golfScore(par, strokes) { | |
// Only change code below this line | |
if (strokes === 1) { | |
return "Hole-in-one!"; | |
} else if (strokes <= (par - 2)) { | |
return "Eagle"; | |
} else if (strokes === (par - 1)) { | |
return "Birdie"; |
- Status: [accepted | superseded by ADR-0005 | deprecated | …]
- Deciders: [list everyone involved in the decision]
- Date: [YYYY-MM-DD when the decision was last updated]
Technical Story: [description | ticket/issue URL]
See the instructions in README.md for how to run the code.
When developing a feature, you should start by scoping out a spec, developing tests against that spec and writing code against the tests. Working with others to review the spec before starting development is encouraged.
- When you create a branch, it should reflect the nature of the change.