Skip to content

Instantly share code, notes, and snippets.

View patcon's full-sized avatar

Patrick Connolly patcon

View GitHub Profile
@patcon
patcon / tinder-api-documentation.md
Created May 25, 2016 18:20 — forked from rtt/tinder-api-documentation.md
Tinder API Documentation

Tinder API documentation

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

Note: this was written in April/May 2014 and the API may have changed since. I have nothing to do with Tinder, nor their API, and I do not offer any support for anything you may build on top of this

API Details

@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": [
{
{
"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-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",
<?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"/>
article {
font-family: 'Times New Roman';
font-size: 16px;
width: 620px;
}
header {
font-family: Arial;
}
h1, h2, h3, h4, h5, h6 {
font-family: Arial;
@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
@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 / 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. [...]