Skip to content

Instantly share code, notes, and snippets.

View jdesboeufs's full-sized avatar

Jérôme Desboeufs jdesboeufs

  • Living Data
  • Paris
View GitHub Profile
@jdesboeufs
jdesboeufs / gist:bfbe6a841cb503539db1
Created November 25, 2014 13:06
Update local database
# Récupère le dump de la base
scp -r mesaides:~/dump-2014-11-25-1 .
# Invite de commande mongo
mongo
> use dds-dev
> db.dropDatabase()
> exit
# Import
@jdesboeufs
jdesboeufs / development.ini
Created November 25, 2014 13:28
Configuration locale OpenFisca
# OpenFisca-Web-API - Development environment configuration
#
# The %(here)s variable will be replaced with the parent directory of this file.
[DEFAULT]
debug = true
# Uncomment and replace with the address which should receive any error reports
# email_to = openfisca-monitoring@sgmap.fr
# smtp_server = localhost
# error_email_from = openfisca-mes-aides@sgmap.fr
@jdesboeufs
jdesboeufs / search-communes.sql
Created November 10, 2015 13:38
Requêtes Appellations APICarto
SELECT
ST_AsGeoJSON(appellation.geom) AS geom,
ST_AREA(ST_INTERSECTION(input_geom, appellation.geom)::geography) / 10000 AS area,
appellation,
id_uni,
ST_CONTAINS(input_geom, appellation.geom) AS contains
FROM
(
SELECT
communes.insee,
@jdesboeufs
jdesboeufs / parse-avis-ir.js
Created December 17, 2015 08:54
Prototype parsing avis IR
var PDFParser = require('pdf2json');
var _ = require('lodash');
var _s = require('underscore.string');
var parser = new PDFParser();
var startTime = Date.now();
parser.on("pdfParser_dataReady", function() {
var endOfParsing = Date.now();

Keybase proof

I hereby claim:

  • I am jdesboeufs on github.
  • I am jdesboeufs (https://keybase.io/jdesboeufs) on keybase.
  • I have a public key whose fingerprint is 1D85 C99A EE45 DFDC 763D 86C7 944E E184 7442 1AE5

To claim this, I am signing this object:

@jdesboeufs
jdesboeufs / README.md
Last active February 14, 2017 22:09
Example Ansible playbook for ovh/svfs

Containers are immediately available in /mnt/{vfs.name}

Related to issue #84

@jdesboeufs
jdesboeufs / debug.log
Last active August 8, 2016 13:35
Debugging geohisto
Warning: Bellegarde (01033) has no successor after 1956-10-18
Warning: Coupy (01126) has no successor after 1966-03-22
Warning: Champagne (01079) has no successor after 1956-10-18
Warning: Saint-Maurice-d'Échazeaux (01377) has no successor after 1943-07-31
Warning: Amareins-Francheleins-Cesseins (01165) has no successor after 1973-12-31
Warning: Hauteville (01185) has no successor after 1942-07-31
Warning: Treffort-Cuisiat (01426) has no successor after 1972-11-30
Warning: Coulonges-en-Tardenois (02220) has no successor after 1956-06-07
Warning: Les Longueval-Barbonval (02439) has no successor after 1970-12-31
Warning: Charmont-sur-Marne (02524) has no successor after 1974-09-30
@jdesboeufs
jdesboeufs / successors-absorption.csv
Last active August 8, 2016 16:19
geohisto exports investigation
INSEE_CODE NAME START_DATE END_DATE SUCCESSORS COMMENT
37261 Tours 1943-01-01 2020-01-01 Commune qui absorbe d'autres communes
37235 Sainte-Radegonde-en-Touraine 1943-01-01 1964-06-01 37261 Commune absorbée
37239 Saint-Symphorien 1943-01-01 1964-06-01 37261 Commune absorbée
@jdesboeufs
jdesboeufs / all.json
Last active September 2, 2016 11:31
Catalog JSON
[
{
"id": "5387a37d785588482f5acb45",
"slug": "geobretagne",
"name": "GéoBretagne",
"tags": [
"Région Bretagne",
"État",
"Collectivités"
@jdesboeufs
jdesboeufs / main.asm
Created September 29, 2016 15:17
Space Invaders
include "OS.h"
xdef _ti89
xdef asm_init_jeu
xdef asm_jeu
xdef asm_vaisseau_g
xdef asm_vaisseau_d
xdef asm_tirer