Skip to content

Instantly share code, notes, and snippets.

@flire
flire / lam93toLatLon.py
Created April 1, 2016 15:44
Lambert-93 to WGS84 converter
def lam93toLatLon(x, y):
constants = {
'GRS80E': 0.081819191042816,
'LONG_0': 3,
'XS': 700000,
'YS': 12655612.0499,
'n': 0.7256077650532670,
'C': 11754255.4261
}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
import Control.Monad
import Control.Monad.Error
import Data.Char
-------------------1-------------------
data ListIndexError =
ErrTooLargeIndex Int
| ErrNegativeIndex
@flire
flire / gist:a5a2982216c7b1154c4e
Created April 20, 2015 19:18
RQL grammar for Xtext
grammar org.xtext.rql.RQL //with org.eclipse.xtext.common.Terminals
import "http://www.eclipse.org/emf/2002/Ecore" as ecore
generate rQL "http://www.xtext.org/rql/RQL"
//Model:
// greetings+=Greeting*;
//
//Greeting: