Skip to content

Instantly share code, notes, and snippets.

@matael
matael / diffs.json
Created September 29, 2013 19:25
Différences
{"229":"DAVID D'ANGERS","228":"DAVID D'ANGERS","519":"MARCEL LETANG","518":"OASIS","223":"CUGNOT","221":"CROIX DE PIERRE","220":"CROIX DE PIERRE","511":"NICE","510":"MARCEL LETANG","225":"CUGNOT","224":"CUGNOT","111":"BOUTTIE","112":"BOUTTIE","308":"FUSAINS","117":"HERMITAGE","116":"HERMITAGE","304":"FRESNELLERIE","305":"FROMENDIERE","306":"FUNAY","307":"FUNAY","303":"FRESNELLERIE","49":"BANJAN","47":"BANJAN","44":"COMTES DU MAINE","45":"AVENUE NATIONALE","586":"LE PRESSOIR","587":"RUAUDIN","700":"ST MICHEL","482":"MONET","481":"MONET","480":"BOUCHARDIERE","704":"SUISSE","243":"D. PIRONI","601":"RAINERIES","242":"DIESEL","605":"REMBRANDT","604":"REMBRANDT","410":"LE LUARD","411":"LE LUARD","694":"POLUCAN","415":"LEON BLUM","416":"LEON BLUM","419":"VAL MORAND","395":"LA POINTE","394":"TERROIRIE","182":"CITE JOLY","183":"CITE JOLY","39":"AUBRAC","248":"FONTENELLES","393":"TERROIRIE","539":"ARROMANCHES","31":"ARCHE NATURE","392":"LA PAIX","650":"CHAMPAGNE","538":"ARROMANCHES","847":"UNIVERSITE","654":"LA CHESNAI
@matael
matael / export.geojson
Created September 29, 2013 15:57
Récup des coords des arrêts
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@matael
matael / gist:6753346
Created September 29, 2013 15:17
Export des données OSM via overpass turbo. license OSM OdBL
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="Overpass API">
<note>The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.</note>
<meta osm_base="2013-09-29T15:12:02Z"/>
<node id="56147503" lat="48.0240712" lon="0.1763838">
<tag k="bench" v="yes"/>
<tag k="highway" v="bus_stop"/>
<tag k="name" v="Zone Industrielle Nord"/>
<tag k="ref" v="ZIN 3"/>
@matael
matael / liste_arrets.py
Last active December 24, 2015 05:39
Récupération d'une hashmap JSON arret->lignes passantes
#! /usr/bin/env python3
# -*- coding:utf8 -*-
#
# liste_arrets.py
#
# Copyright © 2013 Mathieu Gaborit (matael) <[email protected]>
#
#
# Distributed under WTFPL terms
#
#! /usr/bin/env python
# -*- coding:utf8 -*-
#
# pytimeo.py
#
# Copyright © 2013 Mathieu Gaborit (matael) <[email protected]>
#
#
# Distributed under WTFPL terms
#
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#! /usr/bin/env python
# -*- coding:utf8 -*-
#
# l2spi_tc1.py
#
# Copyright © 2013 Mathieu Gaborit (matael) <[email protected]>
#
#
# Distributed under WTFPL terms
#
@matael
matael / scala-2.10-debianinstaller.sh
Created August 15, 2013 10:27
Scala 2.10.2 installer for debian
#! /bin/bash
#
# scala-2.10-debianinstaller.sh
#
# Copyright © 2013 Mathieu Gaborit matael <[email protected]>
#
#
# Distributed under WTFPL terms
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
package org.stairwaybook.layout
import Element.elem
abstract class Element {
def contents: Array[String]
def width: Int = contents(0).length
def height: Int = contents.length
def above(that: Element): Element = {
val this1 = this widen that.width
@matael
matael / rpi_setup.sh
Last active December 17, 2015 09:28
RPi Twitter <-> CoffeePot
#! /bin/bash
#
# rpi_setup.sh
# Author: Matael
# Setup python package for tweeting coffeePot
# update distribute (RPi.GPIO requires last version)
easy_install -U distribute || easy_install-2.7 -U distribute