Skip to content

Instantly share code, notes, and snippets.

View dersteppenwolf's full-sized avatar
🏠
Working from home

Juan Carlos Méndez dersteppenwolf

🏠
Working from home
View GitHub Profile
@dersteppenwolf
dersteppenwolf / FGDB_to_Geopackage.py
Last active June 28, 2019 14:31
Conversión de Filegeodatabase a Geopackage utilizando Python y Arcpy
#-*- coding: UTF-8 -*-
import logging, os
import arcpy
from arcpy import env
################################################################################
################################################################################
if __name__ == "__main__":
logging.info("************************************************************************************************")
logging.info("Inicio Programa")
logging.debug("export_fgdb_to_geopackage ")
@dersteppenwolf
dersteppenwolf / .block
Last active October 25, 2018 05:56 — forked from mbostock/.block
Force Layout from CSV
license: gpl-3.0
@dersteppenwolf
dersteppenwolf / .block
Created October 17, 2018 00:25
US States Choropleth Small Multiples
license: mit
@dersteppenwolf
dersteppenwolf / .block
Created September 12, 2018 02:49
Line Chart
license: gpl-3.0
@dersteppenwolf
dersteppenwolf / docker-cleanup-resources.md
Last active September 6, 2021 09:58 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@dersteppenwolf
dersteppenwolf / docker-compose
Created April 7, 2017 10:24 — forked from yarikc/docker-compose
docker-compose for Elastic 5 + Kibana
version: '2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.3.0
container_name: elasticsearch
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
@dersteppenwolf
dersteppenwolf / README.md
Created March 11, 2017 13:44 — forked from ramiroaznar/README.md
ramiroaznar meta gist

Meta Gist

  • PostgreSQL and PostGIS queries
  • CartoCSS styles
  • CARTO.js blocks
  • DI.js blocks
  • Leaflet.js blocks
  • Other blocks
  • Others
@dersteppenwolf
dersteppenwolf / Killing_Godzillas_using_Arcpy.py
Last active August 27, 2016 12:18
Killing Godzillas using Arcpy
try:
max_num_vertex = 250
feature = "yourFeatureName"
dataset = "yourDatasetName"
sourceWorkspace= "C:/data/gdb/yourdata.gdb"
env.workspace = sourceWorkspace + '/' + dataset + '/'
layerSelection = "selectedLayer"
arcpy.MakeFeatureLayer_management(feature, layerSelection)
result = arcpy.GetCount_management(layerSelection)
resultValue = result.getOutput(0)
@dersteppenwolf
dersteppenwolf / README.md
Created March 31, 2016 23:29 — forked from rochoa/README.md
CartoDB's MVT service + Mapbox GL

CartoDB's MVT service + Mapbox GL

Check index.html for some examples. These use a beta feature of CartoDB's Maps API: fixed URLs. So there is no need to use cartodb.js and tiles can be consumed using a named map name.

cartodb.js example

Check cartodb.js.html to see the integration with cartodb.js and in particular with cartodb.core.js.

Mapbox GL resources

@dersteppenwolf
dersteppenwolf / GeodatabaseToCartoDB.py
Last active January 18, 2016 22:03
Export data from Arcgis Desktop to CartoDB using Python / Arcpy
# -*- coding: utf-8 -*-
# Requires CartoDB Toolbox for Arcgis http://gkudos.com/blog/2015/05/15/cartodb-toolbox/
# http://stackoverflow.com/questions/29134512/insecureplatformwarning-a-true-sslcontext-object-is-not-available-this-prevent
# python -m pip install requests[security]
# Import arcpy module
import arcpy
import logging, os
from arcpy import env