Source: Statistics Canada
GEOJson data by Johan Sundström
Totals for major cities (shown) is 6,979. Other Quebec, Other Ontario, Manitoba, Saskatchewan, Other Alberta, Other British Columbia, Territories, Province or territory not stated not shown (21,302).
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
const lighthouse = require('lighthouse'); | |
const chromeLauncher = require('chrome-launcher'); | |
// run this with | |
// node lighthouseTest.js --accessibility=0.79 --seo=2 | |
// it will fail on SEO | |
const args = process.argv.slice(2); |
Clone a repository
Cloning refers to making a copy of a repository (e.g. https://github.com/bbc/vjdata.24555.cqcfsa) to your local machine - so you can have access to the code on your own pc.
git clone git@github.com:bbc/vjdata.24555.cqcfsa.git
Initiate a repository from scratch
Requires an existing folder whose changes you want to track (called the 'working directory')
This command will create a .git folder inside the directory, which is responsible tracking the changes your are making.
cd
into the directorygit init
git checkout -b my_branch_name # create a new branch
git status # check that your're on new branch, and if there's anything to commit
git add . # add everything, or alternatively, add one by one
git commit -m 'my commit message"
git push # at this point... git will respond by saying did you mean "git push --set-upstream origin my_branch_name", so follow that command to complete pushing your local branch
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
<!doctype html> | |
<html lang="en-GB"> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta charSet="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta name="robots" content="nofollow" /> | |
<link rel="manifest" href="manifest.json" /> | |
<link rel="preconnect" href="https://ichef.bbci.co.uk" crossOrigin="anonymous" /> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Experimenting with re-drawing a map using a resize() function.
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
borough | twentytwelve | twentythirteen | |
---|---|---|---|
City of London | 1960 | 1767 | |
Barking and Dagenham | 866 | 921 | |
Barnet | 1390 | 1460 | |
Bexley | 872 | 880 | |
Brent | 1372 | 1276 | |
Bromley | 1045 | 1027 | |
Camden | 1903 | 1987 | |
Croydon | 884 | 926 | |
Ealing | 1178 | 1369 |
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 isAutoplay() { | |
var url = window.location.search; | |
var arr = url.split(/(\&|\?)/); | |
var autoplay = false; | |
for(var i = 0; i < arr.length; i++) { | |
if(arr[i] === "autoplay=true") { | |
autoplay = true; | |
} |
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
d3 = function() { | |
var d3 = { | |
version: "3.3.5" | |
}; | |
if (!Date.now) Date.now = function() { | |
return +new Date(); | |
}; | |
var d3_arraySlice = [].slice, d3_array = function(list) { | |
return d3_arraySlice.call(list); | |
}; |
NewerOlder