Skip to content

Instantly share code, notes, and snippets.

View rcoup's full-sized avatar

Robert Coup rcoup

View GitHub Profile
@rcoup
rcoup / gpkg_gdal_aspatial.md
Last active August 29, 2015 14:02
Proposal - GeoPackage Aspatial Support Extension

Extension Title

Aspatial Support

Introduction

Support for aspatial data (ie. SQLite tables/views without a geometry column), potentially with associated metadata.

Extension Author

Keybase proof

I hereby claim:

  • I am rcoup on github.
  • I am rcoup (https://keybase.io/rcoup) on keybase.
  • I have a public key whose fingerprint is B3D4 4A9C 67EC B138 ED59 A0B2 22F0 2D6F DD91 F295

To claim this, I am signing this object:

Proj4:
+proj=utm +zone=36 +ellps=WGS84
GML:
<gml:ProjectedCRS gml:id="ogrcrs1">
<gml:srsName>UTM Zone 36, Northern Hemisphere</gml:srsName>
<gml:baseCRS>
<gml:GeographicCRS gml:id="ogrcrs2">
@rcoup
rcoup / companies.py
Last active August 29, 2015 13:56 — forked from NZKoz/companies.rb
import base64
import hashlib
import hmac
import time
from email.utils import formatdate
import requests
HOST="somewhere"
KEY_ID="gimme"
SECRET="ssshhh"
@rcoup
rcoup / compressed-ratelimit.log
Last active August 29, 2015 13:55
$request_time is 0.000 with gzip/chunked? http://forum.nginx.org/read.php?29,246968
curl -v http://127.0.0.1:8000/big3.html --compressed --limit-rate 10m > /dev/null
access_log:
127.0.0.1 - - [31/Jan/2014:09:38:09 +1300] "GET /big3.html HTTP/1.1" 200 192569263 "-" "curl/7.30.0" "-" 18.316
debug_log:
2014/01/31 09:37:46 [debug] 72800#0: bind() 0.0.0.0:8000 #6
2014/01/31 09:37:46 [notice] 72800#0: using the "kqueue" event method
2014/01/31 09:37:46 [debug] 72800#0: counter: 00000001052E6080, 1
2014/01/31 09:37:46 [notice] 72800#0: nginx/1.5.9
@rcoup
rcoup / geoserver-23.txt
Created January 9, 2014 01:31
http://jira.codehaus.org/browse/GEOS-6187 - comparing Geoserver 2.3.5 with 2.4.3 for various GML/WFS versions, server/client-specified maxFeatures, resultTypes, and hitsIgnoreMaxFeatures settings (2.4).
GEOSERVER 2.3.5
GML2 results 1.1.0 limit=[10]: numberReturned=None numberOfFeatures=None actual=10 numberMatched=None
GML2 results 1.1.0 limit=5 : numberReturned=None numberOfFeatures=None actual=5 numberMatched=None
GML2 results 1.0.0 limit=[10]: numberReturned=None numberOfFeatures=None actual=10 numberMatched=None
GML2 results 1.0.0 limit=5 : numberReturned=None numberOfFeatures=None actual=5 numberMatched=None
GML2 results 2.0.0 limit=[10]: numberReturned=None numberOfFeatures=None actual=10 numberMatched=None
GML2 results 2.0.0 limit=5 : numberReturned=None numberOfFeatures=None actual=5 numberMatched=None
GML2 hits 1.1.0 limit=[10]: numberReturned=None numberOfFeatures=10 actual=0 numberMatched=None
GML2 hits 1.1.0 limit=5 : numberReturned=None numberOfFeatures=5 actual=0 numberMatched=None
@rcoup
rcoup / data_types.md
Created December 8, 2013 19:55
Gather Python 101 Workshop - Data Types Cheat Sheet

Gather Workshops Gather Workshops

Data Types Cheat Sheet

Numbers: integers and floats

  • Integers don't have a decimal place.
  • Floats have a decimal place.
  • Math mostly works the way it does on a calculator, and you can use parentheses to override the order of operations.
@rcoup
rcoup / loops.md
Last active February 19, 2021 07:38
Gather Python 101 Workshop - Loops Cheat Sheet

Gather Workshops Gather Workshops

Loops Cheat Sheet

For loops

Use a for loop to do something to every element in a list.

@rcoup
rcoup / tutorial.md
Created December 8, 2013 19:40
Gather - Python 101 Workshop - Tutorial

Gather Workshops Gather Workshops

Welcome to the Tutorial!

This tutorial covers several core programming concepts that we'll build upon during the following interactive lecture. It will take 1-2 hours to complete. There's a break in the middle, and exercises at the middle and end to help review the material.

This is an interactive tutorial! As you go through this tutorial, any time you see something that looks like this:

@rcoup
rcoup / weird.py
Last active December 18, 2015 03:19
__getattr__ plus @Property is NOT INTUITIVE
class Test(object):
@property
def x(self):
print "property-x"
return 7
def y(self):
return 8
a = 9