Skip to content

Instantly share code, notes, and snippets.

@Guts
Guts / md_xml_fixer.py
Created September 11, 2017 16:26
Brest - Metadata fixer
# -*- coding: UTF-8 -*-
from __future__ import (absolute_import, print_function, unicode_literals)
# -----------------------------------------------------------------------------
# Name: Metadata XML fixer
# Purpose: Check
# Python: 2.7.x
# Author: Julien Moura (https://github.com/Guts)
# Created: 08/09/2017
# -----------------------------------------------------------------------------
@Guts
Guts / keybase.md
Last active January 8, 2017 18:04

Keybase proof

I hereby claim:

  • I am Guts on github.
  • I am geoj (https://keybase.io/geoj) on keybase.
  • I have a public key whose fingerprint is 3945 73A0 B98B 8FE3 B83D 49C3 7262 9DBE A2DA 60FC

To claim this, I am signing this object:

@Guts
Guts / PyQGIS_sample.py
Last active December 24, 2015 12:00
Code du tutoriel de GeoTribu pour créer un plugin QGIS
mapCan = qgis.utils.iface.mapCanvas()
mapCan.layerCount()
>>> 1
lay = mapCan.layer(0)
print lay.name()
>>> TM_WORLD_BORDERS-0.3
lay.setLayerName("World Border")
print lay.name()
@Guts
Guts / isogeo_team.prj
Created November 2, 2015 16:28
Add a given .prj dependance to every AutoCAD DWG file found among a given folder structure
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
@Guts
Guts / InsertDate.gs
Last active August 29, 2015 14:26 — forked from thomxc/InsertDate.gs
Google Docs Script Macro: Insert Date
/**
* The onOpen function runs automatically when the Google Docs document is
* opened. Use it to add custom menus to Google Docs that allow the user to run
* custom scripts. For more information, please consult the following two
* resources.
*
* Extending Google Docs developer guide:
* https://developers.google.com/apps-script/guides/docs
*
* Document service reference documentation:
@Guts
Guts / Geoseminaire_Inscriptions.js
Last active January 4, 2016 12:09
Publispostage avec Google Form
// Julien Moura Guts@users.noreply.github.com
// Pour le géoséminaire : http://geoseminaire.teledetection.fr
// Méthodologie :
// 1- Créer un formulaire sur Google Drive
// 2- Créer un document modèle qui sera rempli par le script (template)
// 3- Ouvrir le tableau des réponses du formulaire
// 3- Aller dans l'éditeur de script (Menu Outils) et ouvrir un nouveau projet
// 4- Copier / coller le code ci-dessous et l'adapter au formulaire (ID du document template, prix, etc)
// 5- Renommer le nom du projet et code.gs