Skip to content

Instantly share code, notes, and snippets.

View slibby's full-sized avatar

Sam Libby slibby

  • Esri
  • Boulder, CO
View GitHub Profile
{
layers: [
{
layout: {},
paint: {
"fill-color": "#0000ff",
"fill-outline-color": "#000000"
},
source: "twc",
minzoom: 0,
@slibby
slibby / DHIS2 example.ipynb
Created August 26, 2020 15:36
Example Jupyter Notebook accessing indicators from the DHIS2 Test Site
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# ------------------------------------------------------------------------------
# Copyright 2018 Esri
# 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
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
-- create required extensions if they don't already exist
create extension if not exists postgis;
create extension if not exists postgres_fdw;
--drop remote server if exists
drop server if exists sde_host;
--create postgres_fdw server
create server sde_host foreign data wrapper postgres_fdw options (host 'slibby10.esri.com', dbname 'db_pro_create', port '5432');
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--The viewport meta tag is used to improve the presentation and behavior of the samples
on iOS devices-->
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title>Class breaks with rotation and proportional symbols</title>
<link rel="stylesheet" href="http://js.arcgis.com/3.14/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.14/esri/css/esri.css">
@slibby
slibby / index.html
Last active November 12, 2015 22:17
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--The viewport meta tag is used to improve the presentation and behavior of the samples
on iOS devices-->
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title>Class breaks with rotation and proportional symbols</title>
<link rel="stylesheet" href="http://js.arcgis.com/3.14/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.14/esri/css/esri.css">
@slibby
slibby / index.html
Created November 11, 2015 22:05
test
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href=
"http://js.arcgis.com/3.14/esri/css/esri.css">
<link rel="stylesheet" type="text/css" href=
"https://rawgit.com/benheb/legend/master/legend.css">
@slibby
slibby / webmap.json
Created November 11, 2015 22:05
test
{
"item": {
"title": "New Map",
"snippet": "test",
"extent": [
[
-79.20332031247852,
-27.611271424607484
],
[