Skip to content

Instantly share code, notes, and snippets.

View patcon's full-sized avatar

Patrick Connolly patcon

View GitHub Profile
<akomaNtoso>
<debate>
<meta>
<references>
<TLCPerson href="/ontology/person/::/Claudette Lam" id="Claudette Lam" showAs="Claudette Lam"></TLCPerson>
<TLCPerson href="/ontology/person/::/Henek Lo" id="Henek Lo" showAs="Henek Lo"></TLCPerson>
<TLCPerson href="/ontology/person/::/Mike Orgill" id="Mike Orgill" showAs="Mike Orgill"></TLCPerson>
<TLCPerson href="/ontology/person/::/Sanghyun Lee" id="Sanghyun Lee" showAs="Sanghyun Lee"></TLCPerson>
<TLCPerson href="/ontology/person/::/劉士銘" id="劉士銘" showAs="劉士銘"></TLCPerson>
<TLCPerson href="/ontology/person/::/劉美琇" id="劉美琇" showAs="劉美琇"></TLCPerson>
@patcon
patcon / ocd-swagger-spec.yml
Created February 13, 2017 21:06
Saving hypothetical OCD api spec
# this is an example of the Uber API
# as a demonstration of an API spec in YAML
swagger: '2.0'
info:
title: Toronto City Hall API
description: Understand what's going on in Toronto City Hall
version: "1.0.0"
# the domain of the service
host: api.t0ronto.ca
# array of all schemes that your API supports
@patcon
patcon / TEXT.md
Created January 16, 2017 22:48
Democracy for Realists excerpt

Democracy for Realists

Chapter 8: The Very Basis of Reason

p. 228

Identity Theory in Politics and the Road Forward

..the concept of identity became central. This concept serves to disintguish groups to which an individual simply belongs (that are not central to self-concept) from those that are a more integral part of personality. Different people in the same group may differ. Thus some Catholics have a purely nominal attachmentment, and others think of it as central to who they are. A disparaging remark about Catholics is an attack on them. [...]

@patcon
patcon / swagger.json
Last active November 21, 2016 05:31
Swagger spec - Canadian Voter Registration API
{
"swagger": "2.0",
"info": {
"title": "Canadian Voter Registration API",
"description": "This is a speculative API server for checking Canadian voter registrations via [Election Canada's online tool](https://ereg.elections.ca/CWelcome.aspx). This exists solely for documentation, and is not yet implemented.",
"version": "1.0.0"
},
"host": "ereg.t0ronto.ca",
"schemes": [
"https"
@patcon
patcon / stream_to_youtube.sh
Last active October 26, 2016 08:12 — forked from olasd/stream_to_youtube.sh
Stream video to youtube via ffmpeg
#! /bin/bash
#
# Diffusion youtube avec ffmpeg
# Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée.
VBR="2500k" # Bitrate de la vidéo en sortie
FPS="30" # FPS de la vidéo en sortie
QUAL="medium" # Preset de qualité FFMPEG
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube
article {
font-family: 'Times New Roman';
font-size: 16px;
width: 620px;
}
header {
font-family: Arial;
}
h1, h2, h3, h4, h5, h6 {
font-family: Arial;
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pdf2xml SYSTEM "pdf2xml.dtd">
<pdf2xml producer="poppler" version="0.24.5">
<page number="1" position="absolute" top="0" left="0" height="1188" width="918">
<fontspec id="0" size="16" family="Times" color="#000000"/>
<fontspec id="1" size="40" family="Times" color="#f5873c"/>
<fontspec id="2" size="16" family="Times" color="#000000"/>
<fontspec id="3" size="40" family="Times" color="#000000"/>
<image top="305" left="84" width="432" height="150" src="Monthly Report - Jan 2013-1_1.jpg"/>
@patcon
patcon / toronto-staff-popolo.json
Last active May 30, 2016 04:43
A sample file for City of Toronto contacts conforming to the Popolo standard.
{
"persons": [
{
"id": "jennifer-forkes",
"name": "Jennifer Forkes",
"gender": "female",
"contact_details": [
{
"id": "forkes-email",
"type": "email",
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"LM_NAME": "Salvation Army Erin Mills Branch",
"CATEGORY": "Social Services",
"STR_ADDR": "2460 The Collegeway",
"MUN": "Mississauga",
@patcon
patcon / toronto-city-hall-api.json
Created May 25, 2016 18:34
JSONdoc API for a hypothetical city hall API.
{
"apis": {
"": [
{
"auth": null,
"description": "The user services",
"group": "",
"jsondocId": "ea51f3cf-a403-4325-ae6e-9814d7ed7d0f",
"methods": [
{