Skip to content

Instantly share code, notes, and snippets.

James McKinney jpmckinney

Block or report user

Report or block jpmckinney

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View translate_markdown.py
import gettext
import os
import re
import sys
from collections import OrderedDict
from docutils import frontend
from docutils import nodes
from docutils.parsers import rst
from docutils.utils import new_document
View test.json
{"extensions": [{"category": "parties", "core": false, "description": {"en": "For including extra contact points on each organization. Particularly used when each contact point deals only in a particular language or group of languages."}, "documentation_url": "https://github.com/open-contracting/ocds_additionalContactPoints_extension", "name": {"en": "Additional Contact Points"}, "url": "https://raw.githubusercontent.com/open-contracting/ocds_additionalContactPoints_extension/master/"}, {"category": "bids", "core": true, "description": {"en": "Allowing bid statistics, and detailed bid information to be represented."}, "documentation_url": "https://github.com/open-contracting/ocds_bid_extension", "name": {"en": "Bid statistics and details"}, "url": "https://raw.githubusercontent.com/open-contracting/ocds_bid_extension/v1.1.3/"}, {"category": "ppp", "core": false, "description": {"en": "Adds a budget breakdown array to the budget object to break down a budget by source and period."}, "documentation_url": "https
@jpmckinney
jpmckinney / character-class.rb
Created Feb 14, 2017
Character class to match encoding errors
View character-class.rb
/[¡¢£¤¥¦§¨©ª¬­®¯°±²³´µ¶·¸¹º¼½¾¿ÂÃÅËŒœŠšŸŽžƒˆ˜‘‚„†‡•…‰‹›€™]/
@jpmckinney
jpmckinney / digital-government-networks.md
Last active Jan 31, 2017
Online and informal intergovernmental networks
View digital-government-networks.md

Slack communities

@jpmckinney
jpmckinney / _readme.md
Last active Feb 3, 2017
Languages used by government GitHub repositories
View _readme.md

These files list government GitHub repositories, and the number of bytes of code written in each language.

Produced by running the languages:github Rake task from open_source_canada against the list of 'U.S. City' and 'U.S. Federal' GitHub organizations. Data for Canadian GitHub organizations is elsewhere.

@jpmckinney
jpmckinney / index.html
Last active Jul 16, 2016
Side-by-side comparison of draft versus final Canada OGP National Action Plan 2016-18.
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.text
{
width: 50%;
float: left;
font: 300 16px/23px Helvetica,Arial,sans-serif;
}
del, .del
View dataportal.json
{
"language": "en",
"title": "Paris Data",
"description": "City of Paris Open Data portal",
"homepage": "http://opendata.paris.fr/",
"modified": "2016-03-04T13:44:44+00:00",
"conformsTo": "https://example.com/v1.0/schema",
"number_of_datasets": 176,
"publisher":{
"name": "City of Paris",
@jpmckinney
jpmckinney / .block
Last active Jan 23, 2018
WeWork Place Ville-Marie Mac OS X Printing Instructions
View .block
license: cc-by-4.0
@jpmckinney
jpmckinney / sso-rails-provider.patch
Last active Feb 16, 2016
See https://github.com/rishabhp/sso-rails-provider/issues/3. The repo also ran `rails g devise:install`, `rails g devise:views` and `rails g devise User`, which aren't shown in the diff to keep it small.
View sso-rails-provider.patch
diff --git b/Gemfile a/Gemfile
index 257a263..4896a34 100644
--- b/Gemfile
+++ a/Gemfile
@@ -43,4 +43,12 @@ group :development do
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
+
+ gem 'pry'
View sso-rails-client.patch
diff --git b/Gemfile a/Gemfile
index 37bc11c..17145fa 100644
--- b/Gemfile
+++ a/Gemfile
@@ -45,3 +45,7 @@ group :development do
gem 'spring'
end
+gem 'omniauth'
+gem 'omniauth-oauth2'
You can’t perform that action at this time.