Skip to content

Instantly share code, notes, and snippets.

View eightysteele's full-sized avatar

Aaron Steele eightysteele

View GitHub Profile
(import '[java.util UUID])
(defn uuid-stream []
(repeatedly #(str (UUID/randomUUID))))
(defn domain-map [root-path n]
(let [name-seq (take n (uuid-stream))]
(->> (map (partial str root-path "/") name-seq)
(interleave name-seq)
(apply hash-map))))
{
"properties":{
"areas":{
"values":{
"Spizocorys_personata:1.0":24352145855.3125,
"Hylocharis_chrysura:1.0":3110523285033.5,
"Caprimulgus_solala:1.0":0,
"Phylloscopus_chloronotus:1.0":379180718196.1875,
"Geothlypis_chiriquensis:1.0":0,
"Hylorchilus_sumichrasti:1.0":11687204311.5,
{
"properties":{
"areas":{
"values":{
"Hylocharis_chrysura:1.0":3114936261984.672,
"Molothrus_armenti:1.0":0,
"Phylloscopus_chloronotus:1.0":378906273745.875,
"Geothlypis_chiriquensis:1.0":0,
"Hylorchilus_sumichrasti:1.0":11688389637.148438,
"Anthracothorax_veraguensis:1.0":0,
@eightysteele
eightysteele / gist:1408088
Created November 30, 2011 04:59
Install pyhdf on Ubuntu Oneric
wget -c http://ufpr.dl.sourceforge.net/project/pysclint/pyhdf/0.8.3/pyhdf-0.8.3.tar.gz
tar zxvf pyhdf-0.8.3.tar.gz
cd pyhdf-0.8.3
sudo apt-get install libhdf4-dev
sudo apt-get install python2.6-dev
cd pyhdf
sudo apt-get install swig
swig -python hdfext.i
cd ..
export INCLUDE_DIRS=/usr/include/hdf
""" MODULE images2gif
Provides a function (writeGif) to write animated gif from a series
of PIL images or numpy arrays.
This code is provided as is, and is free to use for all.
Almar Klein (June 2009)
- based on gifmaker (in the scripts folder of the source distribution of PIL)
Latin,PolygonCount
Abeillia abeillei,6
Abroscopus schisticeps,4
Abroscopus superciliaris,1
Acanthidops bairdii,6
Acanthiza chrysorrhoa,1
Acanthiza inornata,1
Acanthiza iredalei,1
Acanthiza katherina,1
Acanthiza reguloides,1
geography.sql.in.c
legacy_compatibility_layer.sql.in.c
legacy.sql.in.c
long_xact.sql.in.c
lwgeom_sqlmm.c
postgis_drop_before.sql.in.c
postgis_drop.sql.in.c
postgis.sql.in.c
postgis_upgrade_20_minor.sql.in
sqlmm.sql.in.c
https://eighty.cartodb.com/tiles/mol_cody/3/6/3.png?style=#mol_cody{polygon-fill:#99CC00; polygon-opacity:.5; line-opacity:1; line-color:#FFFFFF; line-width:0;}
{
"_id":"0-12736",
"_rev":"1-b5615b9a2648d5518be35c9e2d47c42a",
"b":[
[
"-180",
"-16.1333333"
],
[
"-179.9912754",
{
"url": "http://www.cellmapper.net/api/v2/json.php?action=getTowers&data[MCC]=202&data[MNC]=1&data[LAC]=1002"
"action":"getTowers",
"data":[
{
"base":"33",
"visible":1,
"latitude":37.945139540016,
"longitude":23.658307831007
},