Skip to content

Instantly share code, notes, and snippets.

View henare's full-sized avatar

Henare Degan henare

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<debates>
<major-heading id="uk.org.publicwhip/lords/2014-03-25.3.1" url="http://parlinfo.aph.gov.au/parlInfo/search/display/display.w3p;adv=yes;orderBy=_fragment_number,doc_date-rev;page=0;query=Dataset%3Ahansards,hansards80%20Date%3A25%2F3%2F2014;rec=0;resCount=Default">
BILLS </major-heading>
<minor-heading id="uk.org.publicwhip/lords/2014-03-25.3.2" url="http://parlinfo.aph.gov.au/parlInfo/search/display/display.w3p;adv=yes;orderBy=_fragment_number,doc_date-rev;page=0;query=Dataset%3Ahansards,hansards80%20Date%3A25%2F3%2F2014;rec=0;resCount=Default">
Social Services and Other Legislation Amendment Bill 2013; Consideration of House of Representatives Message </minor-heading>
<speech approximate_duration="60" approximate_wordcount="193" id="uk.org.publicwhip/lords/2014-03-25.3.3" speakerid="uk.org.publicwhip/lord/100083" speakername="Mitch Peter Fifield" talktype="speech" time="12:31" url="http://parlinfo.aph.gov.au/parlInfo/search/display/display.w3p;adv=yes;orderB
require 'open-uri'
require 'json'
# Grab a signed URL from the API console for the group you want: http://www.meetup.com/meetup_api/console/?path=/2/members
url = ''
results = JSON.parse(open(url).read)
results['results'].each do |r|
if r['other_services'] && r['other_services']['twitter']
@henare
henare / public_whip_todo.md
Last active August 29, 2015 14:01
Public Whip TODO
  • Remaining sections
    • note issues here
  • Review Rails app
    • Page differences, API differences
    • Which DB tables is Rails not using? Why?
  • Pair with Matthew to review Rails app
  • Review remaining PHP issues outstanding
  • Review code notes (TODO, FIXME, etc.)
  • Review policies, edited divisions
We can't make this file beautiful and searchable because it's too large.
ERAID,Rank,Title,FoR1,FoR1 Name,FoR2,FoR2 Name,FoR3,FoR2 Name,ISSN1,ISSN2,ISSN3,ISSN4
11662,C,1913: a journal of forms,2005,Literary Studies,,,,,1548-9914,,,
34647,B,3CMedia,20,"Language, Communication and Culture",,,,,1832-6161,1445-971X,,
39853,C,4OR: A Quarterly Journal of Operations Research,0102,Applied Mathematics,1503,Business and Management,,,1619-4500,0390-8127,,
32180,C,A St A: Advances in Statistical Analysis,0104,Statistics ,,,,,1863-8171,1863-818X,0002-6018,
30533,A,AA files: annals of the Architectural Association School of Architecture,1201,Architecture,,,,,0261-6823,,,
36072,B,AACE International Transactions,15,"Commerce, Management, Tourism and Services",12,Built Environment and Design,,,1528-7106,,,
35966,B,AACE Journal,13,Education,,,,,1551-3696,,,
15571,C,AACN Advanced Critical Care,1103,Clinical Sciences,,,,,1559-7768,1559-7776,1079-0713,
44322,C,AANA Journal,1103,Clinical Sciences,1110,Nursing,,,0094-6354,,,
@henare
henare / 1.md
Created July 3, 2014 01:18
Suggestion to NSW Parliament website about locating Register of Interests

Hello,

I was recently trying to find the Register of Interests online and found this page that mentions it: http://www.parliament.nsw.gov.au/prod/web/common.nsf/key/membersethics

It says you need to call and make an appointment to see it. When I did call the Clerk's office I was advised it was online as a tabled paper here: http://www.parliament.nsw.gov.au/prod/la/latabdoc.nsf/30d097ada2f32772ca256e84007f076b/bf372a04a3499ebcca257c060017f56c?OpenDocument

I mentioned to the person I spoke to that it might be a good idea to link to that so that people don't have to call up and find out. The person advised they couldn't make the change but that I could use this form to suggest it - so here I am! :)

Can you please advise if you can make this change so the register is more easily found and the Clerk's office is not burdened with phone calls from people like me trying to locate this document?

Keybase proof

I hereby claim:

  • I am henare on github.
  • I am henare (https://keybase.io/henare) on keybase.
  • I have a public key whose fingerprint is 2025 342E 1A58 0861 5B3D 5210 3B8B EA4C 8A9A BDE8

To claim this, I am signing this object:

<division divdate="2013-03-21" divnumber="2" id="uk.org.publicwhip/debate/2013-03-21.77.1" nospeaker="true" time="14:39" url="http://parlinfo.aph.gov.au/parlInfo/search/display/display.w3p;adv=yes;orderBy=_fragment_number,doc_date-rev;page=0;query=Dataset%3Ahansardr,hansardr80%20Date%3A21%2F3%2F2013;rec=0;resCount=Default">
<divisioncount ayes="73" noes="71" pairs="2" tellerayes="0" tellernoes="0"/>
<memberlist vote="aye">
<member id="uk.org.publicwhip/member/1" vote="aye">Tony John Abbott</member>
<member id="uk.org.publicwhip/member/589" vote="aye">John Alexander</member>
<member id="uk.org.publicwhip/member/13" vote="aye">Kevin James Andrews</member>
<member id="uk.org.publicwhip/member/612" vote="aye">Karen Andrews</member>
<member id="uk.org.publicwhip/member/26" vote="aye">Bob Charles Baldwin</member>
<member id="uk.org.publicwhip/member/38" vote="aye">Bruce Fredrick Billson</member>
<member id="uk.org.publicwhip/member/42" vote="aye">Mrs Bronwyn Kathleen Bishop</member>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python
import scraperwiki
import urllib2
import lxml.etree
urls = ["http://www.finance.gov.au/sites/default/files//sites/default/files/P33_ABBOTT_Tony.pdf","http://www.finance.gov.au/sites/default/files//sites/default/files/P33_ALBANESE_Anthony.pdf","http://www.finance.gov.au/sites/default/files//sites/default/files/P33_ALEXANDER_John.pdf","http://www.finance.gov.au/sites/default/files//sites/default/files/P33_BALDWIN_Bob.pdf","http://www.finance.gov.au/sites/default/files//sites/default/files/P33_BIRD_Sharon.pdf","http://www.finance.gov.au/sites/default/files//sites/default/files/P33_BISHOP_Bronwyn.pdf","http://www.finance.gov.au/sites/default/files//sites/default/files/P33_BOWEN_Chris.pdf","http://www.finance.gov.au/sites/default/files//sites/default/files/P33_BRADBURY_David.pdf","http://www.finance.gov.au/sites/default/files//sites/default/files/P33_BURKE_Tony.pdf","http://www.finance.gov.au/sites/default/files//sites/default/files/P33_CAMERON_Doug.pdf","http://www.finance.gov.au/sites/defa