Skip to content

Instantly share code, notes, and snippets.

View SteveBarnett's full-sized avatar

Steve Barnett SteveBarnett

View GitHub Profile
@SteveBarnett
SteveBarnett / webpagetest.md
Last active November 12, 2017 21:32
Boilerplate for running WebPageTest from the command line, using the WebPageTest API Wrapper for NodeJS

npm install webpagetest -g


webpagetest test wpt-script.txt -k $WPT_API_KEY -l "Dulles_MotoG" -y "3G" -r "5" -vpt


This ^^^ does 5 runs of the test on a Motorola Moto G on a 3G connection. If you're feeling brave, try -y "3GSlow". If you're feeling really brave, try -y Edge.

@SteveBarnett
SteveBarnett / psi.md
Last active August 29, 2015 14:27
Boilerplate for running Google's PageSpeedInsights from the command line Raw

https://www.npmjs.com/package/psi


psi --strategy "mobile" --threshold "85" http://example.com


Running PSI via the web-based version or through DevTools gives more explicit instructions on how to fix things, so it's good to check there too.

@SteveBarnett
SteveBarnett / install.md
Last active August 29, 2015 14:28
Phantomas set up for command line use
@SteveBarnett
SteveBarnett / checklist.md
Created August 26, 2015 14:34
Updated FED checklist

FED Checklist

Planning / Design

HTML

Images

  • Use as few as possible, so that your page loads faster and costs your users less data.
  • Use the best format for your image (the one that gives the smallest file size, while retaining image quality): SVGs; JPGs (for photos, images with many colours); PNGs (for images with fewer colours); GIFs (for animations).
@SteveBarnett
SteveBarnett / responsinating.md
Created August 27, 2015 09:59
Thoughts from looking at some responsive apps
  • Block level elements can become select-like items of larger screens
  • Anchors / accordions become tabs
  • Simple layouts becomes centered, with side padding to keep a good measure
  • Block level display becomes inline-blocks, at break points
  • Simple step navigation (Next > Edit Campaign) becomes breadcrumbs (Name > Edit > Publish)
  • One columns becomes two, by row, to keep context
  • Use arrow instead of burgerto indicate directions / movement
  • Off-canvas stacked layers. Must have multiple navitation controls: <- arrow for back, Save and Cancel buttons.
  • Off-canvas menus come on screen when there's enough room for them.
  • Smart defauts -> Short list of popular / recent -> detailed selection if needed.
@SteveBarnett
SteveBarnett / email.md
Created October 22, 2015 04:27
Closing down of SPIN

Dear Software Professional,

It is with great regret that today the SPIN committee is announcing that SPIN is closing.

When the Software Process Improvement Network events started in Cape Town in 2005, many of the problems it tackled, and discussions that it encouraged, were to solve the “big problems” of software development. With the rise of agile methodologies like scrum, kanban, and extreme programming, software process improvement is better understood than any time in its past.

Cape Town’s software development community has also experienced incredible growth over the last decade, now supporting technical talks for all major (and some niche) software languages and development practices.

All these events focus on “software improvement” in some way. The committee feels that there is no longer a need for talks focusing specifically on software process improvement.

@SteveBarnett
SteveBarnett / notes.md
Last active April 14, 2016 07:00
Current preferred WebPageTest setup

Run using the excellent WebPageTest API wrapper for NodeJS by Marcel Duran, and $WPT_API_KEY as an environment variable.

Command

webpagetest test example.com -k $WPT_API_KEY -l "Dulles_MotoG" -y "custom" -D 100 -U 100 -Y 200 -r "5" -vpt

-k key -l location and device (Dulles being thinly place with a selection of mobile devices, at the time of writing)

@SteveBarnett
SteveBarnett / mail.md
Last active November 2, 2015 11:14
ctfeds chaser mail, to send from meetup

Subject

Is your RSVP still correct?

Body

Hello there.

Looks like we're going to have a packed house on Wednesday. Yay! If you can't make it, please update your RSVP to No so that peeps on the waiting list can come to the meetup in your place.

@SteveBarnett
SteveBarnett / 1.md
Created November 2, 2015 13:48
console.log and vars and thing

console.log(7);

@SteveBarnett
SteveBarnett / notes.md
Last active December 14, 2015 23:07
Notes for the codex Free Basics app