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>
@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

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 / datagouv-getting-started.md
Last active June 6, 2017 07:57
Démarrage rapide Data.gouv.fr
@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 / 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 / README.md
Last active January 2, 2024 19:06
A Python macro for LibreOffice calc exporting all the sheets from a spreadsheet to CSV files UTF-8 encoded

Manual

This macro has to be installed in your personnal user macro in:

  • ~/.config/libreoffice/4/user/Scripts/python/export_as_csvs.py on Linux
  • \AppData\Roaming\LibreOffice\4\user\Scripts\python\export_as_csvs.py on Windows
  • /Applications/LibreOffice.app/Contents/Resources/Scripts/python/export_as_csvs.py on MacOS (there may be a better alternative)

You can execute it from the menu Tools > Macros > Run macro... and then select My Macros > export_as_csv in the left column and export_sheets_to_csv in the right one and then click on Run.

@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