Radial bar chart inspired by Peter Cook's work.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
from os import system | |
from urllib2 import urlopen | |
from socket import socket | |
from sys import argv | |
from time import asctime | |
import smtplib | |
import string | |
from ftplib import FTP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# converts a shapefile to an elasticsearch geo_point type with this mapping: | |
# | |
# { | |
# "zipcode" : { | |
# "properties" : { | |
# "geometry": { | |
# "properties": { | |
# "coordinates": { | |
# "type": "geo_point" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import random | |
import urllib | |
class MapInstance(object): | |
def __init__(self, definition, url, headers=None): | |
self.url = url | |
self.definition = definition |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import urllib | |
import urllib2 | |
import base64 | |
import json | |
import sys | |
import argparse | |
try: | |
import requests | |
except ImportError: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
This script creates an .sd from a .pyt | |
.. It assumes that all tools can be called with no parameters (i.e., | |
all parameters are "optional". Not ideal for all services, but | |
works fine for services that arn't called from ArcMap anyway. | |
If you are calling your service from ArcMap, publish the traditional | |
way .. |
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.
Check cartodb.js.html to see the integration with cartodb.js and in particular with cartodb.core.js.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// 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
OlderNewer