Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View tmaslen's full-sized avatar

Tom Maslen tmaslen

View GitHub Profile
var _ = require( 'lodash' );
module.exports = function ( html ) {
var anyInlineCssTag = new RegExp( '<style type="text/css">[^<]*</style>', 'g' );
var matches = html.match( anyInlineCssTag );
_.uniq( matches ).forEach( function( styleTag ) {
#!/bin/bash
# Create a temp file that runs install instructions on the host
cat > finish-code-deploy.sh <<- EOM
rm -fr tweetgest.com
mkdir tweetgest.com
unzip code-to-deploy.zip -d tweetgest.com
EOM
# Zip up and deploy the code and the install script

# BBC News JavaScript Standard v0.0

Contents:

  • Introduction
  • Ensuring availability of JavaScript content for all users
  • JavaScript coding strategies
  • Legal requirements
  • Implementation and optimisation
  • XML HTTP Requests (AJAX)
#!/bin/bash
VM=default
DOCKER_MACHINE=/usr/local/bin/docker-machine
VBOXMANAGE=/Applications/VirtualBox.app/Contents/MacOS/VBoxManage
BLUE='\033[0;34m'
GREEN='\033[0;32m'
NC='\033[0m'
function init () {
async.series([
function( callback ) {
firstFunction( callback );
},
function( callback ) {
secondFunction( callback );
}
]);

My nan used to always cheat at Scrabble. I know this because she always used to help me win. She stopped cheating to help me about 10 years ago when I won without her help. I murdered the competition during that game, beating my sister, my mum and my nan by at least 100 points. From that day on nan always cheated to help the people I was playing against.

My nan always used to comment on my appearance. One year when I was growing my hair long each time I saw her she would tell me I looked scruffy. That I should get my hair cut short just like my granddad's. But when I did eventually get my hair cut she took one look at it and said "What you get your haircut for? I liked it the way it was".

My nan always used to tell me what to eat. She treated my being a vegetarian with great suspicion. Every week when I would take her shopping she'd try to tempt me with varying different kinds of meats from ASDA's deli section. And when she would cook for me on a Friday lunchtime she'd always offer to put an extr

Image quality research

Summary:

After looking into the issue of the image quality of Visual Journalism output on the News website we have decided that there are a number of actions we can take:

  • Visual Journalism upload larger sized images (976px as a minimum). These will then be down scaled rather than upscaled.

  • Increase use of art direction tooling (AI2RWD for example).

What we do, who we are
BBC :: News :: Visual Journalism :: Dev Team
> Team of 9 developers and 1 tester responsible for
> BUILDING and SUPPORTING Visual Journalism's WEB CONTENT
There are THREE WORKFLOWS:
* DAILY TASKS Very quick, normally predefined, tasks that a developer will do at

it appears that the URL(s) in question relate(s) to matters of substantial interest to the public regarding your professional life

Its the opinion of a child, they may be interesting to the public but they are massively subjective and potentially reputationaly damaging. My partner has some of the highest exam grades in the school - this is not subjective, but the results are not published to the web with her name associated to them. She is strict so some of the pupils don't like her despite the results she gets and yet these children can dirty her reputation with a single, anonymous comment.

These URLs appear at the top of google searches for her name. And they were also written a long time ago. How can you allow this to happen to a teacher, a person of the highest integrity who gives everything to her profession for the betterment of society.

I'm massively disappointed in Google, cases like this are the reason why this law was created.

Regards, Tom Maslen.

@tmaslen
tmaslen / gist:d141e0e25e0beb807fc3
Created July 18, 2014 13:19
notes for a potential presentation about the iframe scaffold
iframe scaffold
===============
## The problems
* current stuff keeps breaking on responsive
* need to deploy our work to apps
* We're going to move away from our existing infrastructure
Also: