Instantly share code, notes, and snippets.

View test.kml
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="">
<Document xmlns:xsi="" xsi:schemaLocation="">
<Style id="PolyStyle">
View gist:c22f0dcf4fb0a72dec53
#!/usr/bin/env python
# sample usage:
import pickle, os, sys, logging
from httplib import HTTPConnection, socket
from smtplib import SMTP
def email_alert(message, status):
fromaddr = ''
"""My thoughts on what a skimage version of Matlab's blockproc [1] function could look like.
def process_windows(arr_in, window_shape, proc_func=None, step_size=(0,0),
border_size=(0,0), border_fill_mode='overlap', pad_mode='edge',
"""Map image windows for (optional) parallel according to specified
windowing rule.
# Using pip is usually more reliable than using easy_install.
# Set USEPIP=False only if pip fails for some reason.
packages = [
## Add the packages to be installed here.
## Version numbers can be specified.
## Example:
## 'lxml>=2.0.0',
## 'leaf',
# Fluent Interface Definition
class sql:
class select:
def __init__(self, dbcolumn, context=None):
self.dbcolumn = dbcolumn
self.context = context
def select(self, dbcolumn):
return self.__class__(dbcolumn,self)
# Demo