Skip to content

Instantly share code, notes, and snippets.

View timrobertson100's full-sized avatar
🌴
On vacation

Tim Robertson timrobertson100

🌴
On vacation
View GitHub Profile
@timrobertson100
timrobertson100 / demo.html
Last active August 26, 2015 08:52
Demo of adjusting map for Fede
<!DOCTYPE html>
<html style="width: 99%; height: 99%; min-height: 99%;">
<head>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
</head>
<body style="width: 100%; height: 100%; min-height: 100%;">
<div id="map" style="width: 100%; height: 100%; min-height: 100%;"></div>
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
<script>
There are verbatim and interpreted fields shown below:
Verbatim:
v_abstract,
v_accessrights,
v_accrualmethod,
v_accrualperiodicity,
v_accrualpolicy,
v_alternative,
v_audience,
CREATE TABLE tim.jw_uncertainty
ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t'
SELECT
coordinateUncertaintyInMeters, count(*) AS numRecords
FROM
prod_b.occurrence_hdfs
WHERE
decimalLatitude IS NOT NULL AND
decimalLongitude IS NOT NULL AND
hasCoordinateIssue = FALSE AND
<article class="container">
<div class="row">
<!--
Introduction text
-->
<section id="introduction" class="col-md-12 well well-lg">
<div class="row">
<header class="content-header col-md-12">
<h2>Species occurrence record trends</h2>
// Detect the URLs with the ISO code, and ensure the tab is highlighted
if (isset($variables['page']['menu']['menu_block_gbif_navigation_analytics'])) {
$current_path = explode('/', current_path());
// e.g. analytics/country/<ISO>/about or analytics/country/<ISO>/published
if (count($current_path) == 4) {
// items where registered in menu without the ISO
$menu_item = $current_path[0] . '/' . $current_path[1] . '/' . $current_path[3];
// find the registered menu item and add the "active" CSS class to the attributes
foreach ($variables['page']['menu']['menu_block_gbif_navigation_analytics']['#content'] as $k => $tab) {
if (gettype($k) == 'integer') {
// Detect the URLs with the ISO code, and ensure the tab is highlighted
if (isset($variables['page']['menu']['menu_block_gbif_navigation_analytics'])) {
$current_path = explode('/', current_path());
// e.g. analytics/country/<ISO>/about or analytics/country/<ISO>/published
if (count($current_path) == 4) {
// items where registered in menu without the ISO
$menu_item = $current_path[0] . '/' . $current_path[1] . '/' . $current_path[3];
// find the registered menu item and add the "active" CSS class to the attributes
foreach ($variables['page']['menu']['menu_block_gbif_navigation_analytics']['#content'] as $k => $tab) {
if (gettype($k) == 'integer') {
"higherclassification","num"
"Eukaryota;Metazoa;Ecdysozoa;Arthropoda;Hexapoda;Insecta;Pterygota;Neoptera;Endopterygota;Trichoptera;Integripalpia;Limnephiloidea;Limnephilidae;Limnephilinae;Limnephilini;Limnephilus","604700"
"Eukaryota;Viridiplantae;Streptophyta;Embryophyta;Tracheophyta;Spermatophyta;Magnoliophyta;eudicotyledons;Gunneridae;Pentapetalae;rosids;fabids;Fagales;Betulaceae;Betula","552002"
"Eukaryota;Metazoa;Chordata;Craniata;Vertebrata;Euteleostomi;Mammalia;Eutheria;Laurasiatheria;Chiroptera;Microchiroptera;Vespertilionidae;Myotis","495939"
"Eukaryota;Metazoa;Chordata;Craniata;Vertebrata;Euteleostomi;Lepidosauria;Squamata;Bifurcata;Unidentata;Episquamata;Toxicofera;Serpentes;Colubroidea;Viperidae;Crotalinae;Crotalus","473439"
"Bacteria;environmental samples","408917"
"Eukaryota;Viridiplantae;Streptophyta;Embryophyta;Tracheophyta;Spermatophyta;Magnoliophyta;eudicotyledons;Gunneridae;Pentapetalae;rosids;fabids;Malpighiales;Euphorbiaceae;Crotonoideae;Manihoteae;Manihot","277902"
"Eukaryota;Metazoa;Ecd
{"datasetUuid":"66011193-d453-4b02-95b7-174fe16e2ffe","attempt":2,"fragment":"eyJhc3NvY2lhdGVkU2VxdWVuY2VzIjoiQ0FPSzAxMTM2ODQ0IiwiYmFzaXNPZlJlY29yZCI6Ik1hdGVyaWFsU2FtcGxlIiwiY3JlYXRlZCI6IjIwMTItMTEtMjgiLCJkZWNpbWFsTGF0aXR1ZGUiOiI1Ny4yMzAyIiwiZGVjaW1hbExvbmdpdHVkZSI6Ii00Ljc1NDkiLCJ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