Skip to content

Instantly share code, notes, and snippets.

View eightysteele's full-sized avatar

Aaron Steele eightysteele

View GitHub Profile
# A sample writing a BlobProperty to an external file.
# (Note: not a BlobReferenceProperty.)
- model: models.Attachment
connector: csv
connector_options:
encoding: utf-8
columns: from_header
property_map:
- property: __key__
external_name: ID
DEBUG [org.gbif.ipt.config.IPTModule$1] - GET /registry/thesauri.json HTTP/1.1
DEBUG [org.gbif.ipt.config.IPTModule$1] - GET /vocabulary/iso/639-2.xml HTTP/1.1
DEBUG [org.gbif.ipt.utils.HttpUtil] - Successfully downloaded http://rs.gbif.org/vocabulary/iso/639-2.xml to /Users/eighty/Desktop/IPT/config/.vocabularies/http_rs_gbif_org_vocabulary_iso_639-2_xml.vocab
INFO [org.gbif.ipt.service.admin.impl.VocabulariesManagerImpl] - Successfully loaded Vocabulary: ISO 639-2 Language Codes
DEBUG [org.gbif.ipt.service.admin.impl.VocabulariesManagerImpl] - Saving uri2url vocabulary map with 1 entries ...
DEBUG [org.gbif.ipt.config.IPTModule$1] - GET /vocabulary/iso/3166-1_alpha2.xml HTTP/1.1
DEBUG [org.gbif.ipt.utils.HttpUtil] - Successfully downloaded http://rs.gbif.org/vocabulary/iso/3166-1_alpha2.xml to /Users/eighty/Desktop/IPT/config/.vocabularies/http_rs_gbif_org_vocabulary_iso_3166-1_alpha2_xml.vocab
INFO [org.gbif.ipt.service.admin.impl.VocabulariesManagerImpl] - Successfully loaded Vocabulary: ISO 3166-1 Alph
#!/usr/bin/env python
#
# Copyright 2010 Map Of Life
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
dude:MOL-git eighty$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 3 commits.
#
# Changed but not updated:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: app/COL.pyc
# deleted: app/png.pyc
class Tile(webapp.RequestHandler):
def post(self):
self.get()
def get(self):
url = self.request.path_info
png_data = TileService.get_png_tile(url)
if png_data:
self.response.headers['Content-Type'] = 'image/png'
self.response.out.write(png_data.getvalue())
#!/usr/bin/env python
#
# Copyright 2011 Map Of Life
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
package org.bg.server;
import java.io.IOException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.appengine.repackaged.com.google.common.collect.ImmutableMap;
import com.google.gson.Gson;
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Placemark>
<name>Tessellated</name>
<visibility>1</visibility>
<description></description>
<!-- LinearRing as a "standalone" geometry -->
<LinearRing id="4:0:0">
<gx:altitudeOffset>0</gx:altitudeOffset>
<extrude>0</extrude>
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Placemark>
<name>Tessellated</name>
<visibility>1</visibility>
<description>Hi</description>
<!-- LinearRing as a "standalone" geometry -->
<LinearRing id="4:0:0">
<gx:altitudeOffset>0</gx:altitudeOffset>
<extrude>0</extrude>
JAVA lat=-90.0, lng=-180.0, key=7-3-0 - PYTHON lat=-90.0, lng=-180.0, key=7-0-1
JAVA lat=-90.0, lng=-180.0, key=7-3-0 - PYTHON lat=-90.0, lng=-180.0, key=7-0-1
JAVA lat=-90.0, lng=-180.0, key=7-3-0 - PYTHON lat=-90.0, lng=-180.0, key=7-0-1
JAVA lat=-90.0, lng=-180.0, key=7-3-0 - PYTHON lat=-90.0, lng=-180.0, key=7-0-1
JAVA lat=-90.0, lng=-180.0, key=7-3-0 - PYTHON lat=-90.0, lng=-180.0, key=7-0-1
JAVA lat=-90.0, lng=-180.0, key=7-3-0 - PYTHON lat=-90.0, lng=-180.0, key=7-0-1
JAVA lat=-90.0, lng=-180.0, key=7-3-0 - PYTHON lat=-90.0, lng=-180.0, key=7-0-1
JAVA lat=-90.0, lng=-180.0, key=7-3-0 - PYTHON lat=-90.0, lng=-180.0, key=7-0-1
JAVA lat=-90.0, lng=-180.0, key=7-3-0 - PYTHON lat=-90.0, lng=-180.0, key=7-0-1
JAVA lat=-90.0, lng=-180.0, key=7-3-0 - PYTHON lat=-90.0, lng=-180.0, key=7-0-1