Skip to content

Instantly share code, notes, and snippets.

View SteveBarnett's full-sized avatar

Steve Barnett SteveBarnett

View GitHub Profile
@SteveBarnett
SteveBarnett / markup.md
Last active June 6, 2018 09:24
Comparison of HTML usage in Material for Angular and Bootstrap

Here's our custom Angular for an input (admittedly, mine, so not so the best way to Angular)

<app-label-input-pair labelText="Your name" inputId="your-name"></app-label-input-pair>

Here's the HTML output (which we write ourselves, following Bootstrap conventions)

<div class="form-group">
@SteveBarnett
SteveBarnett / .csscomb.json
Created December 14, 2017 13:54
CSS Comb
{
"remove-empty-rulesets": true,
"always-semicolon": true,
"color-case": "lower",
"block-indent": " ",
"color-shorthand": true,
"element-case": "lower",
"eof-newline": true,
"leading-zero": true,
"quotes": "double",
@SteveBarnett
SteveBarnett / notes.md
Created September 8, 2017 11:33
Form and error guidelines

Form and error guidelines

  • what (why)

Forms

Data / Contents

  • Have as few fields as possible (quicker to complete)
  • Remove optional field
@SteveBarnett
SteveBarnett / checklists.md
Last active August 12, 2017 11:09
A handful of handy UX checklists
@SteveBarnett
SteveBarnett / ideas.md
Last active July 4, 2017 10:20
Ideas for making coworkpress a little more friendly :)
Activity Why Details
Inform the venue clearly Let’s people arriving know they’re in the right place, and get pointed the right way. Tell the venue, and ask them to spread the word. Give them one of the stickers / cards / signs.
Name stickers. Show who’s there for coworkpress and who’s not. A sticker. With your name on it.
Status indicators Show who wants to chat and who doesn’t. “Talk to me!” / “please don’t disturb” or “Ssh! In the zone…” / “Want help? Me too!”. Use a card or a sticker or have tables.
Introduction activity. Help people get started talking to each other. 1. Start a new channel #coworkpress on the WP South Africa Slack and share there. 2. An activity: “Find someone you don’t know, who’s wearing a ‘talk to me’ sticker, and ask them: what are you working on? what’s your favourite thing about WordPress?”
@SteveBarnett
SteveBarnett / notes.md
Created April 9, 2017 07:41
InstallFest thoughts

Summary: in Cape Town we have switched to running one day events, and are going to have mentors pull people through the InstallFest in a much more hands-on way.

We (the RBCPT org team) would like some feedback on this. :)

Aside: Why do one day?

The traditional shape is Friday night InstallFest, Saturday day workshop. A lot of our target audience live in areas with high crime rates and come to our workshops via public transport. This combination means asking them to go home late on a Friday night, with a laptop, is simply not safe. After a lot of discussion, we switched to doing just a Saturday, which meant doing the InstallFest in the morning.

Why do the InstallFest differently?

@SteveBarnett
SteveBarnett / notes.md
Last active March 16, 2017 07:23
A few quick thoughts on testing

Why write tests?

  • Have more confidence that the code works. Important since the business depends on it.
  • Reduces the number of bugs.
  • Make changes and refactor more easily / at lower cost.
  • Save time in the long run.
  • Understand the code and make better design choices.
  • Gives you a form of documentation.

How to do it with existing code

@SteveBarnett
SteveBarnett / resources.md
Created March 2, 2017 07:55
Resources for #perfmatters talk
@SteveBarnett
SteveBarnett / config.json
Created February 28, 2017 09:17 — forked from anonymous/config.json
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#333",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "#37abba",
"@brand-success": "#47b475",
@SteveBarnett
SteveBarnett / blurb.md
Created December 3, 2016 07:27
Blurb for RailsBridge at RubyFuza

**Learn to code or level up with RailsBridge. **

Our events are targeted at groups of people that are underrepresented in tech. The workshops teach practical skills useful to those investigating new career paths, looking to compliment their current skill set, or simply interested in gaining a better understanding of software.

We’ll be running the Intro to Rails course. You’ll learn to use both Ruby and Rails to build and publish a web application. You’ll be given sufficient background and confidence to continue developing your Rails skills independently.

We’ll also be running the Job Board course. If you've completed the InstallFest and Intro to Rails courses and would like to stretch your Ruby on Rails skills a bit more, this one is for you.