Skip to content

Instantly share code, notes, and snippets.

<?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>
@TheoLeanse
TheoLeanse / krab
Last active January 23, 2020 21:18
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
provider "aws" {
version = "~> 2.0"
region = "eu-west-1"
}
variable "user_name" {
default = "TODO"
}
resource "aws_s3_bucket" "s3_bucket" {
<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&amp;fit=scale-down&amp;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&amp;fit=scale-down&amp;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>
// 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, '');
const SELECTORS = {
rubadub: {
url: 'http://www.rubadub.co.uk/records'
selectors: ['.product-name']
},
boomkat: {
url: 'https://boomkat.com'
selectors: ['.release__details']
}
}
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;
index=cdn_prod sourcetype=fastly serviceid=133g5BGAc00Hv4v8t0dMry status=5** ft_site=dubnext | timechart count by url limit=100
<!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;
@TheoLeanse
TheoLeanse / news-sitemap-check.js
Created October 10, 2016 08:49
Sitemaps Healthcheck
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'