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 / gist:7938504
Created December 13, 2013 01:16
data.py example format
data = {
'room_id1': [
{
'abstract': '',
'end': '2013-07-06 09:00:00+11:00',
'start': '1970-01-01 10:00:00+10:00',
'title': 'Not Yet Started'},
{
'abstract': '',
'conf_url': '1386831022.76',
@luke-john
luke-john / abccalc_aecdata.js
Created April 5, 2014 13:19
ABC election count with aec data auto fill
// ==UserScript==
// @name ABC election count with aec data auto fill
// @namespace ?
// @description Auto fills the candidates.
// @include http://www2b.abc.net.au/Elections/View/SenateCalculator.aspx?e=34&ca=wa
// @version 1
// @grant GM_xmlhttpRequest
// @require http://code.jquery.com/jquery-1.11.0.min.js
// ==/UserScript==
@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==
@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 / 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_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 / 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 / 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 %}

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 / 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