Skip to content

Instantly share code, notes, and snippets.

View triblondon's full-sized avatar

Andrew Betts triblondon

View GitHub Profile
@triblondon
triblondon / Email.txt
Created August 21, 2016 02:17
BBC complaint response
Dear Mr Betts
Many thanks for getting in touch with us about Vanessa Feltz's programme, 10 August 2016.
Sorry to learn you were unhappy with the item on so-called cupping therapy.
We gave accounts from practitioners, athletes and sceptics (who said it was as beneficial as "having leeches applied to your skin") - we sought input from the listeners in case it hadn't worked for them. Charlie from Southampton spoke clearly about it being 'pure nonsense' and questioning where the toxins go in the cups. Adam also took part in the show, challenging the claims made by the practitioner and referring to it as 'quackery' questioning where the "evidence of any scientific plausibility" was. Also it was clear from Peter's account that his previous persistent pain hadn't been resolved by his previous cupping treatment at all. Individual experiences were heard of, but we didn't draw any universal conclusions from them.
The practice has attracted much attention and the piece sought to explain simply what it involves. It w
@triblondon
triblondon / 1-timertest.js
Last active November 1, 2015 23:24
Weird Node error when using mismatched setInterval vs clearTimeout
var timer;
function a() {
console.log('foo');
// timer is an interval timer, but clear it as if it's a timeout timer
clearTimeout(timer);
}
@triblondon
triblondon / gist:5530fb06586a090ec67d
Created July 8, 2015 14:03
Template strings tag function
function makeTagFunction(fn) {
return (literals, ...substitutions) => {
return literals.map((str, idx) => {
return str + ((idx in substitutions) ? fn(substitutions[idx]) : '');
}).join('');
}
}
let a = 5;
let b = 10;
@triblondon
triblondon / gist:cfaf1a650f09a28e566d
Created June 19, 2015 15:54
git: Pulling from someone else's remote into a local branch
# create a local branch with the same name as theirs (though can be anything
git checkout -b <theirbranchname>
# Pull their changes into the local branch
git pull <remote> <theirbranchname>
@triblondon
triblondon / _proposal.md
Last active October 9, 2016 12:48
Paid content pass specification proposal

Paid content pass specification proposal

Paid content makes up a significant portion of the content available online, especially high value content. Users who are seeking information via search engines frequently run queries for which the most relevant content is to be found from payment-required sources. However, in order that search crawlers are able to index this content, paid content publishers typically permit such crawlers to access their pages as if the crawler were a paid-up subscriber. As a result, search results displayed to users of search engines can create the expectation of free content and disappointment or frustration when the user is denied access.

To date, search providers have attempted to solve this problem by requiring content owners to make content available to searchers in the same form as it is available to the crawler, when a searcher clicks on a search result, a practice known as "First click free". In most cases it is a breach of the search provider's terms of service to bar se

@triblondon
triblondon / keybase.md
Created May 27, 2015 07:36
keybase.md

Keybase proof

I hereby claim:

  • I am triblondon on github.
  • I am triblondon (https://keybase.io/triblondon) on keybase.
  • I have a public key whose fingerprint is 499E 3F7D 72A6 1EFE B9AF 3789 7237 0952 AC58 BFA9

To claim this, I am signing this object:

@triblondon
triblondon / README.md
Last active August 29, 2015 14:13
Edge conf 5: London 2015

#Early draft of Edge conf 5

This was a discussion of the schedule for Edge 5, which is now finalised, and the information below is out of date. See the website for current details.

##Format

Edge 5 will feature a single track of 4 sequential panel discussions on topics of universal importance and topicality to the web community, followed by lunch and then 12 breakout sessions across 4 tracks, in which face to face discussions of specific current and future web topics can be had in boardroom style with groups of up to 50.

@triblondon
triblondon / .scss-lint.yaml
Last active August 29, 2015 14:01
Proposed scss-lint rules
linters:
# ENABLED:
# "border: 0" not "border: none"
BorderZero:
enabled: true
# No capitals in selectors
CapitalizationInSelector:
@triblondon
triblondon / SassMeister-input.scss
Created March 27, 2014 23:19
Generated by SassMeister.com.
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
/* So our dependency tree looks like:
- ModuleB
- ModuleA
- UserAgent
@triblondon
triblondon / .travis.yml
Last active August 29, 2015 13:57
Travis CI config for Origami projects
language: node_js
node_js:
- "0.10"
before_install:
- npm install -g https://github.com/Financial-Times/origami-build-tools/tarball/node-0.10
- origami-build-tools install
script:
- origami-build-tools test