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 d3 = Object.assign( | |
require('d3-selection'), | |
require('d3-hierarchy'), | |
require('d3-timer'), | |
require('d3-ease'), | |
require('d3-geo'), | |
require('d3-request'), | |
require('d3-scale'), | |
require('d3-array'), | |
require('d3-axis') |
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'); | |
var csv = require('csvtojson'); | |
var jsonexport = require('jsonexport'); | |
var data = fs.readFileSync('data.csv', 'utf8'); | |
// create a new data set | |
var organisedData = []; | |
// load the unorganised csv file | |
csv().fromString(data).then(function(json) { |
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
asset_hash: { | |
options: { | |
assetMap: false, | |
hashType: 'file', | |
references: ['**/source.json'], | |
srcBasePath: dir, | |
destBasePath: dir | |
}, | |
your_target: { | |
files: [{ |
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
// ---- | |
// Sass (v3.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
%placeholder { | |
background-color: red; | |
} | |
.a { |
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
// ---- | |
// Sass (v3.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
$item-min-height: 20px; | |
$mobile-media-padding: 20px; | |
a { | |
min-height: $item-min-height + ($mobile-media-padding * 2); |
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
// ---- | |
// Sass (v3.4.5) | |
// Compass (v1.0.1) | |
// ---- | |
%placeholder { | |
color: red; | |
} | |
%placeholder { |
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
// ---- | |
// Sass (v3.4.5) | |
// Compass (v1.0.1) | |
// ---- | |
@charset "UTF-8"; | |
// To enable support for browsers that do not support @media queries, | |
// (IE <= 8, Firefox <= 3, Opera <= 9) set $mq-responsive to false | |
// Create a separate stylesheet served exclusively to these browsers, |
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
{ | |
"html": "<a href=\"http://www.theguardian.com/theguardian/2014/jul/28/-sp-bullying-hypocrisy-andy-coulson-reign-news-of-the-world-hack-attack-nick-davies\">\n<link href=\"http://guardian.sammorr.is/coulson.css\" rel=\"stylesheet\" type=\"text/css\" />\n<div class=\"coulson\">\n <div class=\"coulson__inner\">\n <h1 class=\"coulson__headline\">{{HEADLINE}}</h1>\n <p class=\"coulson__standfirst\">Exclusive extract from Nick Davies’s new book on the phone-hacking scandal</p>\n <ul class=\"coulson__meta\">\n <li><span class=\"icon\"></span>531 Comments</li>\n <li><span class=\"icon\"></span>Share</li>\n </ul>\n </div>\n <div class=\"coulson__cutout\"></div>\n</div>\n</a>", | |
"previous": "", | |
"refreshStatus": true, | |
"headline": "Inside Andy Coulson's News of the World" | |
} |
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
{ | |
"html": "<a href=\"http://www.theguardian.com/theguardian/2014/jul/28/-sp-bullying-hypocrisy-andy-coulson-reign-news-of-the-world-hack-attack-nick-davies\">\n<link href=\"http://guardian.sammorr.is/coulson.css\" rel=\"stylesheet\" type=\"text/css\" />\n<div class=\"coulson\">\n <div class=\"coulson__inner\">\n <h1 class=\"coulson__headline\">{{HEADLINE}}</h1>\n <p class=\"coulson__standfirst\">Exclusive extract from Nick Davies’s new book on the phone-hacking scandal</p>\n <ul class=\"coulson__meta\">\n <li><span class=\"icon\"></span>531 Comments</li>\n <li><span class=\"icon\"></span>Share</li>\n </ul>\n </div>\n <div class=\"coulson__cutout\"></div>\n</div>\n</a>", | |
"previous": "", | |
"refreshStatus": true, | |
"headline": "Inside Andy Coulson's News of the World" | |
} |