Skip to content

Instantly share code, notes, and snippets.

View SteveBarnett's full-sized avatar

Steve Barnett SteveBarnett

View GitHub Profile
# Explain that BEM thing to me again..?
## Block
The **root of your CSS component**. eg: `.c-header` or `.c-flash`. (I'm namespacing all my classes with a `c-` to denote they're components, but that's optional. Namespace away to your own preference. Or don't. Whatever.)
## Element
Classes that are used **inside the component block**, and are **instrumental to the structure** - eg: the links inside a header: `.c-header__link`, or a dismiss button inside a flash notice: `.c-flash__dismiss`.
@SteveBarnett
SteveBarnett / retro.md
Created October 26, 2016 04:35
Friday personal retro format

Pick a new notebook and use it just for retros. Write down your answers to each question. Ideally keep a separate, visible, list of your SMART goals so that you can see them add up over the weeks.


  1. What went well?
  • What should I do differently?
  • What did I learn?
  • Make a SMART goal.

A SMART goal is Specific, Measurable, Achievable, Realistic, Time-bound.

@SteveBarnett
SteveBarnett / style.less
Last active September 24, 2016 04:49
Loading a web font nicely, with FOUT
body {
// set your base
font-family: sans-serif;
line-height: 1.25;
// .wf-loading means js is running and the webfont is loading,
// so adjust the base font to minimise the jank when the switch happens
.wf-loading & {
font-size: 0.935em;
@SteveBarnett
SteveBarnett / snip.php
Last active September 20, 2016 14:39
Remove some of WordPress's junk
<?php
function disable_wp_unwanted_stuff() {
// remove emoji js junk
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
wp_deregister_script( 'wp-embed' );
// Remove the REST API endpoint.
remove_action('rest_api_init', 'wp_oembed_register_route');
@SteveBarnett
SteveBarnett / mail.md
Created August 24, 2016 06:58
RSVP chaser for CTFEDs September 2016 meetup

Subject

Is your RSVP still correct?

Body

We hope you can still make the talk on Wednesday 7th September. To get you thinking about the topic, please reply with an answer to the question below, by 6pm on Friday 2nd September.

  • What's one of your "go to" CSS tricks?
@SteveBarnett
SteveBarnett / notes.md
Last active August 15, 2016 07:02
SUGSA new site
  • Images unoptimised and take up 2.8MB of 4.5MB total size.
    • Smaller is better.
  • PageSpeed: 36 / 100
    • 90 and up is good.
  • WebPageTest: SpeedIndex of 21142 (7722 on repeat view)
  • 5000 is okay, but lower is better.
@SteveBarnett
SteveBarnett / notes.md
Created July 27, 2016 15:52
why do we need to talk to users a lot?

Why do we need to talk to users a lot?

Summary: to give a project the best chance of success (good work, happy users), we need frequent access to the users of the software. Without it, we run the risk of making incorrect assumptions and spending time and money building something that doesn't solve their problems.

When we make software there are two things that we try and keep in mind: build the thing right and build the right thing.

By build the thing right we mean use development best practices (often following agile ways of doing things, using Test-Drive Development, writing clean code, doing code reviews).

By build the right thing we mean doing User Experience stuff, usually with a User-Centered Design flavour.

@SteveBarnett
SteveBarnett / script-outline.md
Created June 15, 2016 11:34
Rough outline for a usability test

Intro - 5m

  • Who I am
  • What we're doing
  • Not testing you, testing the app
  • "Be selfish, self-centred, honest, brave. Think out loud. If you get stuck, that's great."

Warm up - 5m

  • What do you do?
@SteveBarnett
SteveBarnett / notes.md
Created June 3, 2016 05:19
Notes from the telecommunications section of the General household survey 2015
@SteveBarnett
SteveBarnett / mail.md
Created May 31, 2016 06:18
RailsBridge diversity query mail

Hi there.

Thank you for your interest in RailsBridge! :) Our workshops are targeted at groups of people that are underrepresented in tech. Do you match this description?

Thanks!

Regards,

(Steve &) The RailsBridge Cape Town team