Skip to content

Instantly share code, notes, and snippets.

View equivalentideas's full-sized avatar
👒
He/Him/His

Luke Bacon equivalentideas

👒
He/Him/His
View GitHub Profile
@equivalentideas
equivalentideas / share-links-jekyll
Last active October 14, 2018 21:57
Social media share links for Jekyll/Liquid. Add these into a Jekyll layout to produce social media share links using that page's url and description.
@equivalentideas
equivalentideas / textexpander-wget-snippet
Last active August 29, 2015 13:56
Simple text expander snippet for wget
wget --recursive --no-clobber --page-requisites --html-extension --convert-links --domains %filltext:name=Domain% --no-parent %filltext:name=Domain%
@equivalentideas
equivalentideas / data.tsv
Last active August 29, 2015 14:01
Incidents per week time series chart
week count
2009-09-28 1
2009-10-19 2
2009-10-26 6
2009-11-02 3
2009-11-09 6
2009-11-16 22
2009-11-23 9
2009-11-30 12
2009-12-07 13
name centre latitude longitude
Brisbane ITA Brisbane_ITA -27.401747 153.104782
Curtin IDC Curtin_IDC -17.38101 123.677216
Maribyrnong IDC Maribyrnong_IDC -37.780035 144.880142
Northern IDC Northern_IDC -12.425709 130.900211
Perth IDC Perth_IDC -31.934562 115.958118
Scherger IDC Scherger_IDC -12.633869 141.888428
Villawood IDC Villawood_IDC -33.878279 150.987339
Christmas Island Christmas_Island -10.488044 105.611572
Melbourne ITA Melbourne_ITA -37.841807 144.952068
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@equivalentideas
equivalentideas / morph_scraping_snippets
Created May 29, 2015 05:29
Morph scraping helpful snippets
https://github.com/planningalerts-scrapers/melbourne/commit/6dba6cd
@equivalentideas
equivalentideas / webscraping_workshop_links.md
Last active August 23, 2017 02:13
Introduction to Web Scraping Workshop
@equivalentideas
equivalentideas / wa_councillors_gender.csv
Created September 16, 2016 05:22
Gender of Western Australian Local Councillors
Council female male
meekatharra shire council 0% 100%
broomehill-tambellup shire council 0% 100%
exmouth shire council 17% 83%
kulin shire council 11% 89%
bassendean town council 17% 83%
leonora shire council 14% 86%
capel shire council 11% 89%
boyup brook shire council 11% 89%
chittering shire council 14% 86%
@equivalentideas
equivalentideas / extract_hidden_requests_from_right_to_know.rb
Last active August 17, 2017 06:38
Script to run using rails runner to extract information about hidden information requests from Right To Know for analysis. It makes a .csv file with the days date in the title, containing some select (and not safe to publish) information on every hidden request.
CSV.open("./tmp/#{Date.today.to_s}_hidden_requests.csv", "wb") do |csv|
# Make headers
csv << [
"id",
"title",
"url",
"public_body_name",
"jurisdiction",
"created_at",
"requester_name",
@equivalentideas
equivalentideas / freedom_of_information_request_boilerplate.md
Created November 24, 2016 05:12
This is boilerplate text you can use as the starting point for a request for documents to under the Australian Freedom of Information Act, or equivalent act in a state jurisdiction.

Dear <Organisation with the information>,

Could you please send through <documents with the information you want>.

If possible, please treat this as an administrative/informal request. Otherwise please proceed with my request as a formal information request under the Act.

Yours faithfully,

``