View charging-stations-pei.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View harvest-hansard.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# You may need to do these: | |
# | |
# sudo pip install lxml | |
# sudo pip install requests | |
# sudo pip install pdfminer | |
from lxml import html | |
import requests |
View hansard-to-csv.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$files = popen('find ./documents -name "*.txt"', 'r'); | |
$out = fopen('hansard.csv', 'w'); | |
fwrite($out, "date,text,speaker\n"); | |
while (!feof($files)) { | |
$filename = chop(fgets($files, 4096)); | |
$date = basename($filename); |
View ruklinks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"nodes":[{"id":13729,"label":"Remembering Peter Gzowski"},{"id":"16421","label":"A Signal of the New World"},{"id":16973,"label":"Visit West Prince Every Five Years"},{"id":"13492","label":"Twenty-four Hours in West Prince"},{"id":18565,"label":"Getting my old taxonomy into Drupal"},{"id":"18560","label":"Let the Drupalization Begin"},{"id":18569,"label":"Getting my old posts into Drupal"},{"id":18575,"label":"Why I Love my Credit Union, Reason #62"},{"id":"18552","label":"Downloading Credit Union MemberDirect Statements"},{"id":18577,"label":"I have seen the future and it's printed on 20 lb. bond paper, comes from Malm\u00f6 by way of Staples, and is about wearable computing"},{"id":"15473","label":"I Need a Quick Printer"},{"id":"18101","label":"Lulu"},{"id":18581,"label":"Typographic Renovations"},{"id":"17855","label":"Behold the Koloss"},{"id":18590,"label":"Welcome back comments..."},{"id":"18506","label":"10 Year Blogaversary"},{"id":"13490","label":"Tim Hortons Responds"},{"id":"14572","label":"WigWa |
View blog-posts-by-week.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export LC_ALL=C | |
curl -s https://www.zylstra.org/blog/feed/ | \ | |
grep pubDate | \ | |
sed -e 's/<pubDate>//g' | \ | |
sed -e 's/<\/pubDate>//g' | \ | |
while read -r line ; do | |
date -j -f "%a, %d %b %Y %T %z" "$line" "+%V" | |
done | \ | |
sort -n | \ | |
uniq -c |
View calculate-payroll.scpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Numbers = Application('Numbers'); | |
Numbers.includeStandardAdditions = true | |
var table = Numbers.documents[0].sheets[0].tables[0] | |
var selectedRow = table.selectionRange().cells[0]; | |
var hoursCellRow = selectedRow.row().address(); | |
var weekEndingCell = table.ranges["B" + hoursCellRow + ":B" + hoursCellRow].cells[0]; | |
var nameCell = table.ranges["C" + hoursCellRow + ":C" + hoursCellRow].cells[0]; |
View camino-with-waypoints.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View caminofrances.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View caminofrances1.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View pdoc.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* get-pdoc.php - Scrape Canada Revenue Agency payroll deductions values | |
* | |
* This script takes an hourly amount, a number of hours, and a year, | |
* month and day of a pay period ending, and passes these to the | |
* Canada Revenue Agency Payroll Deductions Online Calculator | |
* (https://www.canada.ca/en/revenue-agency/services/e-services/e-services-businesses/payroll-deductions-online-calculator.html), | |
* returning the provincial tax, federal tax, CPP and EI amounts. | |
* |
NewerOlder