Skip to content

Instantly share code, notes, and snippets.

View luke-john's full-sized avatar

Luke John luke-john

View GitHub Profile
@luke-john
luke-john / Building.md
Created November 15, 2018 11:38
Solar engineering styleguide (Bulbs design system)

Building

Component Structure

The pattern should be exported as a named export from a index file in the Pattern folder.

Any pattern specific styled components used in the jsx for the patterns react component should come from an adjacent styled.ts file.

Sub components (react components which are not part of the libraries public api, but used as part of the main react component) should be setup under a components folder.

@luke-john
luke-john / solar-TextInput-README.md
Created May 24, 2018 19:01
Example markdown driving
@luke-john
luke-john / swm-glamorous-styleguide.md
Last active April 17, 2018 14:44
SWM - Glamorous Styleguide

Glamorous Styleguide

This is a simplified version of the Code Styleguide used at Seven West Media where we use Glamorous for styles on https://thewest.com.au and http://www.perthnow.com.au

Setup

All styled items should have a separate file in the componets folder named according to the component name e.g. heading.styled.tsx Sub-components should exist in a separate folder with the components folder called component If there is more than one component, components should be put into their own files

Keybase proof

I hereby claim:

  • I am luke-john on github.
  • I am lukejohn (https://keybase.io/lukejohn) on keybase.
  • I have a public key whose fingerprint is B0A1 286B 142A A9D2 85C8 97E8 6859 C9C0 89C4 518C

To claim this, I am signing this object:

@luke-john
luke-john / viewall.md
Created August 20, 2015 04:16
View all components in one page
layout title group
docs
View all
components
    {% for page in site.data.nav[3].pages %}
@luke-john
luke-john / api-controllers-index.js
Last active August 29, 2015 14:25
Better error handling?
var express = require('express');
var router = express.Router();
router.get('/', function(req, res, next) {
res.jsonp({title: 'API'});
});
module.exports = router;
@luke-john
luke-john / aec_email_complaint.txt
Created April 28, 2014 01:41
[EMAIL] - Scrutineer complaint about being denied access to Scrutiny (Western Australian Senate Scrutiny)
Dear AEO,
On Thursday I made a complaint to the AEC Officer in charge at the
Central Scrutiny Station in Northbridge that scrutineers were being
denied access to a significant proportion of the scrutiny process.
During the first days of the scrutiny, at the Belmont Scrutiny
Station, I verbally requested access to oversee how certain parts of
the central scrutiny system was being conducted. Principally I wanted
to inspect parts of what is referred to by the AEC as "EasyCount" to
@luke-john
luke-john / easycount_dataentry.md
Created April 8, 2014 10:11
EasyCount btl data entry method

EasyCount btl data entry

Data entry guidelines noted down 08/04/2014 at css during WA Senate recount. At each data entry station this guideline was sticky taped to desk.

  • enter two keystrokes per number
    • (ie. 01)
  • if number is illegible
  • ??
@luke-john
luke-john / aec_senate.md
Last active August 29, 2015 13:58
AEC Senate vote process flow.

vote process flow

placed in box by elector

sent to aec processing locations

  • each batch is seperated into
    • formal
      • divided into groups
  • added to batch abl group counts
@luke-john
luke-john / aec_table_sort.js
Created April 5, 2014 15:10
Better table formatting for AEC's Virtual Tally Room (with sort)
// ==UserScript==
// @name Better table formatting for AEC's Virtual Tally Room
// @namespace ?
// @description Makes the table easier to read and adds sort.
// @include http://vtr.aec.gov.au/Default.htm
// @version 1
// @grant none
// @require http://code.jquery.com/jquery-1.11.0.min.js
// ==/UserScript==