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
#!/usr/bin/python | |
# -*- coding: latin-1 -*- | |
#basado en el script originalmente publicado en | |
#http://www.jansipke.nl/using-python-to-add-new-posts-in-wordpress/ | |
import datetime, xmlrpclib | |
from xml.sax.saxutils import escape | |
wp_url = "http://server.com/wordpress/xmlrpc.php" | |
wp_username = "usuario" |
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
#-*- coding: UTF-8 -*- | |
#Script para ejecutar el compress y analyze de la base de datos | |
#Basado en el Script original para arcgis 9.3.1 por Mike Long - [email protected] | |
import string, os, arcpy, time | |
import traceback,sys | |
from arcpy import env | |
# Set the date. |
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 re | |
def title(value): | |
value = value.decode('utf-8') | |
t = re.sub("([a-z])'([A-Z])", lambda m: m.group(0).lower(), value.title()) | |
return re.sub("\d([A-Z])", lambda m: m.group(0).lower(), t) | |
title(!NOM_MUNICI!) |
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
require 'rubygems' | |
require 'twitter' | |
require 'builder' | |
client = Twitter::Client.new( | |
:consumer_key => "your consumer key", | |
:consumer_secret => "your consumer secret", | |
:oauth_token => "your oauth token", | |
:oauth_token_secret => "your oauth secret" | |
) |
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 org.apache.xmlrpc.XmlRpcException; | |
import org.apache.xmlrpc.client.XmlRpcClient; | |
import org.apache.xmlrpc.client.XmlRpcClientConfigImpl; | |
@SuppressWarnings({ "unchecked", "rawtypes" }) | |
@Override | |
/** | |
* Create New Posts in Wordpress using Java | |
* | |
* //http://codex.wordpress.org/XML-RPC_WordPress_API/Posts#wp.newPost |
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: |
OlderNewer