Skip to content

Instantly share code, notes, and snippets.

View MaxDragonheart's full-sized avatar

Massimiliano Moraca MaxDragonheart

View GitHub Profile
from pathlib import PosixPath, Path
import fiona
from typing import Union
import pandas as pd
import geopandas as gpd
def find_duplicates(input_df: pd.core.frame.DataFrame, column_id: Union[str, int]) -> dict:
"""Make a dictionary with list of `column_id` single
@MaxDragonheart
MaxDragonheart / gist:92710b65dd2732b0b36f36bab8553c7d
Created January 8, 2021 16:16 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@MaxDragonheart
MaxDragonheart / 8-wfs-source.js
Last active January 8, 2021 15:23
Code for DirectOpenLayers
import './style.css';
import {
MapInizialized, MapSetView, BaseMapLayer,
wfsLayer
} from './directopenlayers';
const mapCanvas = new MapInizialized('map');
const mapCanvasView = new MapSetView(0, 90, 4);
const basemap = new BaseMapLayer('OSM');
const osm = basemap.createOSMStandard();
@MaxDragonheart
MaxDragonheart / 7-wms-source.js
Created January 8, 2021 13:32
Code for DirectOpenLayers
import './style.css';
import {
MapInizialized, MapSetView, BaseMapLayer,
wmsLayer
} from './directopenlayers';
const mapCanvas = new MapInizialized('map');
const mapCanvasView = new MapSetView(14.425, 40.825, 13);
const basemap = new BaseMapLayer('OSM');
const osm = basemap.createOSMStandard();
@MaxDragonheart
MaxDragonheart / 6-points-clusters.js
Created January 3, 2021 20:02
Code for DirectOpenLayers
import './style.css';
import {
MapInizialized, MapSetView, BaseMapLayer,
MapFullScreen, MapScaleLine, vectorsLayer
} from './directopenlayers';
const mapCanvas = new MapInizialized('map');
const mapCanvasView = new MapSetView(14.350, 40.905, 3);
const basemap = new BaseMapLayer('OSM');
const osm = basemap.createOSMStandard();
@MaxDragonheart
MaxDragonheart / 5-lock-to-extent.js
Created January 3, 2021 18:11
Code for DirectOpenLayers
import './style.css';
import {
MapInizialized, MapSetView, BaseMapLayer,
MapFullScreen, MapScaleLine, vectorsLayer
} from './directopenlayers';
const mapCanvas = new MapInizialized('map');
const mapCanvasView = new MapSetView(14.350, 40.905, 5);
const basemap = new BaseMapLayer('Test');
const osm = basemap.createOSMStandard();
@MaxDragonheart
MaxDragonheart / 4-zoom-on-vector-source.js
Created January 3, 2021 09:39
Code for DirectOpenLayers
import './style.css';
import {
MapInizialized, MapSetView, BaseMapLayer,
MapFullScreen, MapScaleLine, vectorsLayer
} from './directopenlayers';
const mapCanvas = new MapInizialized('map');
const mapCanvasView = new MapSetView(14.350, 40.905, 5);
const basemap = new BaseMapLayer('Test');
const osm = basemap.createOSMStandard();
@MaxDragonheart
MaxDragonheart / 3-add-vectors.js
Last active January 3, 2021 09:28
Code for DirectOpenLayers
import './style.css';
import {
MapInizialized, MapSetView, BaseMapLayer,
MapScaleLine, MapFullScreen, vectorsLayer
} from './directopenlayers';
const mapCanvas = new MapInizialized('map');
const mapCanvasView = new MapSetView(14.350, 40.905, 15);
const scaleLine = new MapScaleLine();
const basemap = new BaseMapLayer('OSM');
@MaxDragonheart
MaxDragonheart / 2-fullscreen-and-scaleline.js
Created January 3, 2021 09:08
Code for DirectOpenLayers
import './style.css';
import {
MapInizialized, MapSetView, BaseMapLayer,
MapFullScreen, MapScaleLine
} from './directopenlayers';
const mapCanvas = new MapInizialized('map');
const mapCanvasView = new MapSetView(0.0, 0.0, 0);
const fullScreen = new MapFullScreen();
const scaleLine = new MapScaleLine();
@MaxDragonheart
MaxDragonheart / 1-quick-start.js
Last active January 3, 2021 08:49
Code for DirectOpenLayers
import './style.css';
import {MapInizialized, MapSetView, BaseMapLayer} from './directopenlayers';
const mapCanvas = new MapInizialized('map');
const mapCanvasView = new MapSetView(0.0, 0.0, 0);
const basemap = new BaseMapLayer('OSM');
const osm = basemap.createOSMStandard();
mapCanvas.addLayer(osm);