Skip to content

Instantly share code, notes, and snippets.

Avatar

Tom Maslen tmaslen

View GitHub Profile
View gist:cd74dcaecbc3e8f4c262067c89e3ad1b
#!/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
View BBC News JavaScript Standard v0.0.md

# 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)
View hint-example.js
function init () {
async.series([
function( callback ) {
firstFunction( callback );
},
function( callback ) {
secondFunction( callback );
}
]);
View gist:4a2747d272f81159d206

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

View gist:91b64d539ba0189b83fe

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).

View gist:ff13a644f6395a0d5a2d
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
View gist:7868e548e77c57b5bf94

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 Jul 18, 2014
notes for a potential presentation about the iframe scaffold
View gist:d141e0e25e0beb807fc3
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: