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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>AppleAntiAliasingThreshold</key> | |
<integer>1</integer> | |
<key>AppleScrollAnimationEnabled</key> | |
<integer>0</integer> | |
<key>AppleSmoothFixedFontsSizeThreshold</key> | |
<integer>1</integer> |
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
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { |
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
provider "aws" { | |
version = "~> 2.0" | |
region = "eu-west-1" | |
} | |
variable "user_name" { | |
default = "TODO" | |
} | |
resource "aws_s3_bucket" "s3_bucket" { |
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
<section class="large"> | |
<h3>Headline</h3> | |
<p class="subtitle">This is some subtitle</p> | |
<img class="n-image" alt="" role="presentation" srcset="https://www.ft.com/__origami/service/image/v2/images/raw/http%3A%2F%2Fcom.ft.imagepublish.prod.s3.amazonaws.com%2F2e46682c-49bb-11e6-8d68-72e9211e86ab?source=next&fit=scale-down&width=600 600w, https://www.ft.com/__origami/service/image/v2/images/raw/http%3A%2F%2Fcom.ft.imagepublish.prod.s3.amazonaws.com%2F2e46682c-49bb-11e6-8d68-72e9211e86ab?source=next&fit=scale-down&width=315 315w" sizes="(min-width: 46.25em) 600px, calc(100vw - 20px)"> | |
<p class="section-body"> | |
<em>This is the main body text.</em><br><a href="/content/db1b6304-492a-11e6-b387-64ab0a67014c" data-trackable="link">It can contain links</a>and pretty much anything else you could have in a normal body.<br/><br/> | |
That includes line breaks, <strong>bold</strong> and who know's what else. The world is your oyster. | |
</p> | |
</section> |
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
// in haikro/lib/build/minimumNpmVersion, add: | |
version = version.replace(/\(node\:[0-9]+\) fs\: re-evaluating native module sources is not supported\. If you are using the graceful\-fs module\, please update it to a more recent version\.\n/g, ''); |
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 SELECTORS = { | |
rubadub: { | |
url: 'http://www.rubadub.co.uk/records' | |
selectors: ['.product-name'] | |
}, | |
boomkat: { | |
url: 'https://boomkat.com' | |
selectors: ['.release__details'] | |
} | |
} |
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 values = [ 50, 500, 5000, 50000 ].sort((a, b) => a - b); | |
const min = values[0]; | |
const max = values[values.length - 1]; | |
const range = max - min; | |
const getScore = value => (value - min) / range; |
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
index=cdn_prod sourcetype=fastly serviceid=133g5BGAc00Hv4v8t0dMry status=5** ft_site=dubnext | timechart count by url limit=100 |
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> | |
<head> | |
<title></title> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r79/three.min.js"></script> | |
<script> | |
let container; |
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 denodeify = require('denodeify'); | |
const xml2js = denodeify(require('xml2js').parseString); | |
require('isomorphic-fetch'); | |
const twoDaysAgo = new Date(); | |
twoDaysAgo.setUTCDate(twoDaysAgo.getUTCDate() - 2); | |
fetch('https://www.ft.com/sitemaps/news.xml', { | |
headers: { | |
'Cookie': 'FT_SITE=DUBNEXT' |
NewerOlder