This file contains hidden or 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
| Admiral | |
| Air Chief Marshal | |
| Air Commodore | |
| Air Marshal | |
| Air Vice Marshal | |
| Alderman | |
| Ambassador | |
| Ambassador-at-Large | |
| Archbishop | |
| Archbishop Emeritus |
This file contains hidden or 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
| [ | |
| { | |
| "op": "core/text-transform", | |
| "engineConfig": { | |
| "facets": [], | |
| "mode": "row-based" | |
| }, | |
| "columnName": "Value", | |
| "expression": "grel:value.replace(/[,£]/,'').toNumber()", | |
| "onError": "keep-original", |
This file contains hidden or 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
| Kt | |
| Bt | |
| Bart | |
| Esq | |
| MNM | |
| VC | |
| GC | |
| KG | |
| LG | |
| KT |
This file contains hidden or 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
| {"ec_ref" : {{jsonize(cells["ECRef"].value)}},"regulated_entity_name" : {{jsonize(cells["RegulatedEntityName"].value)}},"regulated_entity_type" : {{jsonize(cells["RegulatedEntityType"].value)}},"value" : {{jsonize(cells["Value"].value)}},"accepted_date" : {{jsonize(cells["AcceptedDate"].value)}},"accounting_unit_name" : {{jsonize(cells["AccountingUnitName"].value)}},"donor_name" : {{jsonize(cells["DonorName"].value)}},"accounting_units_as_central_party" : {{jsonize(cells["AccountingUnitsAsCentralParty"].value)}},"is_sponsorship" : {{jsonize(cells["IsSponsorship"].value)}},"donor_status" : {{jsonize(cells["DonorStatus"].value)}},"regulated_donee_type" : {{jsonize(cells["RegulatedDoneeType"].value)}},"company_registration_number" : {{jsonize(cells["CompanyRegistrationNumber"].value)}},"postcode" : {{jsonize(cells["Postcode"].value)}},"donation_type" : {{jsonize(cells["DonationType"].value)}},"nature_of_donation" : {{jsonize(cells["NatureOfDonation"].value)}},"purpose_of_visit" : {{jsonize(cells["PurposeOfVisit" |
This file contains hidden or 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
| var casper = require("casper").create({ | |
| verbose: true, | |
| loglevel: "debug" | |
| }); | |
| var response = [], url, site, viewportWidth = 1280, viewportHeight = 1024; | |
| var captureSize = {top: 0, left: 0, width: viewportWidth, height: viewportHeight}; | |
| // to get screenshot folder name from url | |
| var re = /url=(\w+)\./; |
This file contains hidden or 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
| import scraperwiki, urllib2, re, time | |
| import lxml.html | |
| from pprint import pprint | |
| decades = [x*10 for x in range(189,202)] | |
| for decade in decades: | |
| years = [decade+y for y in range(10)] | |
| for year in years: | |
| url = 'http://www.bbc.co.uk/proms/archive/search/'+str(decade)+'s/'+str(year) |
This file contains hidden or 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
| name | color | entity | |
|---|---|---|---|
| Conservative Party | #0087DC | party | |
| Labour Party | #DC241f | party | |
| Liberal Democrats | #FDBB30 | party | |
| UKIP | #70147A | party | |
| Unite | #aabbcc | donor | |
| Joan Edwards* | #aabbcc | donor | |
| GMB | #aabbcc | donor | |
| UNISON | #aabbcc | donor | |
| USDAW | #aabbcc | donor |
This file contains hidden or 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
| var INCR = 10; // Number of messages per page | |
| var SENT_URL = '//www.linkedin.com/inbox/sent?startRow='; | |
| var loMessageLinks = []; // Main array for all contacts | |
| var fetchMessages = function(i, cb) { | |
| console.log('Fetching message page #' + (i+1)); | |
| $.get(SENT_URL + (i*INCR), function(data){ | |
| var $dom = $(data); | |
This file contains hidden or 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
| var fs = require("fs"); | |
| function main() { | |
| fs.readdir("./node_modules", function (err, dirs) { | |
| if (err) { | |
| console.log(err); | |
| return; | |
| } | |
| dirs.forEach(function(dir){ | |
| if (dir.indexOf(".") !== 0) { |
This file contains hidden or 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
| gistup |
NewerOlder