Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
<template>
<layout :title="_('Search')">
<div class="row">
<datasets class="col-xs-12" :datasets="datasets" :title="datasetsTitle">
</datasets>
</div>
<div class="row">
<communities class="col-xs-12" :communities="communities" :title="communitiesTitle">
</communities>
</div>

Keybase proof

I hereby claim:

  • I am noirbizarre on github.
  • I am noirbizarre (https://keybase.io/noirbizarre) on keybase.
  • I have a public key ASBJAR7rZHuZY7D7G4c3dFlqFFHrBGdnyqIXWDec3cTszAo

To claim this, I am signing this object:

@noirbizarre
noirbizarre / apicarto.swagger.yaml
Last active December 21, 2016 09:42
Exemple de specification Swagger pour API Carto
---
swagger: '2.0'
info:
title: APICARTO Cadastre
description: >
Le service d'interrogation du cadastre permet d'obtenir les informations suivantes :
* Obtenir les géométries pour une commune
* Obtenir les divisions parcellaires d'une commune
@noirbizarre
noirbizarre / datagouv-getting-started.md
Last active June 6, 2017 07:57
Démarrage rapide Data.gouv.fr
@noirbizarre
noirbizarre / zones-with-slashes.js
Last active August 4, 2017 16:15
A Map-Reduce listing remaining dataset coverage zones with slashes in identifiers
/*
* List zones with slahes in identifiers with their occurence count
*/
function mapZonesWithSlahes() {
this.spatial.zones.forEach(function(zone) {
if (zone.indexOf('/') >= 0) {
emit(zone, 1);
}
});
@noirbizarre
noirbizarre / udata-1.1-deployment.md
Last active August 29, 2017 20:16
Déploiement de udata 1.1.0 sur next

Dépôt infra

Modification du fichier group_vars/datagouv-preprod/config.yml

Modifier l'entrée udata_territory_handled_levels avec les valeurs suivantes:

  • fr:commune
  • fr:departement
  • fr:region

Déploiement de la preprod avec restoration des données

ansible-playbook sites/next.data.gouv.fr.yml --extra-vars "restore=true"
@noirbizarre
noirbizarre / datasets.json
Created October 25, 2017 16:47
Datasets en erreur
[
{
"_id" : ObjectId("56fe661288ee380160c352f9"),
"_cls" : "Dataset",
"metrics" : {
"nb_uniq_visitors" : NumberInt(0),
"views" : NumberInt(0),
"followers" : NumberInt(0),
"reuses" : NumberInt(0),
"nb_visits" : NumberInt(0),
@noirbizarre
noirbizarre / udata.todo
Created January 4, 2018 16:00
A TODO list for udata
Entry-points:
☐ Commands
✔ harvesters @done(2017-11-30 00:08) @project(Entry-points)
✔ Link checkers @done(2017-11-30 00:08) @project(Entry-points)
✔ Thèmes @done(2017-11-30 00:09) @project(Entry-points)
☐ Metrics
Switches:
☐ Python 3
☐ Flask-CLI
@noirbizarre
noirbizarre / oauth_tester.py
Created March 15, 2018 21:12
A quick and dirty oauth 2 client tester
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from flask import Flask, redirect, url_for, session, json, render_template_string
from authlib.flask.client import OAuth
# Dirty hack for self signed certificate
import ssl
if hasattr(ssl, '_create_unverified_context'):