Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ajturner's full-sized avatar
🗺️
Considering WhereCamps

Andrew Turner ajturner

🗺️
Considering WhereCamps
View GitHub Profile
@ajturner
ajturner / measure.py
Last active February 25, 2024 21:27
Read data from a serial port and plot
# !pip3 install pyserial
import serial
ser = serial.Serial('/dev/cu.usbmodem1101') # open serial port
print(ser.name) # check which port was really used
ser.close()
data = {}
material = 'Pencil'
@ajturner
ajturner / index.html
Created March 4, 2020 15:25
Interactive legend built with CSS
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=7, IE=9, IE=10"/>
<title></title>
<link rel="stylesheet" type="text/css" href="//js.arcgis.com/3.7/js/esri/css/jsapi.css"/>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=News+Cycle"/>
@ajturner
ajturner / index.html
Created March 4, 2020 15:21
Interactive Legend built with CSS.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=7, IE=9, IE=10"/>
<title></title>
<link rel="stylesheet" type="text/css" href="//js.arcgis.com/3.7/js/esri/css/jsapi.css"/>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=News+Cycle"/>
@ajturner
ajturner / nav_sidebar.html
Created June 6, 2019 14:10
Example adding a navigation sidebar to an ArcGIS Hub page - http://geohub.brampton.ca/pages/globally-aware-locally-active-economy
<style>
body {
font-size: 16px
}
a:link {
color: white
}
a:hover {
@ajturner
ajturner / readme.md
Last active June 12, 2018 09:59
Hub Framework developer components
@ajturner
ajturner / index.html
Last active July 28, 2017 15:29
School Attendance Zones (Elementary)
<!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">
@ajturner
ajturner / webmap.json
Created July 27, 2017 14:06
Public Schools
{
"item": {
"title": "New Map",
"snippet": "Public Schools",
"extent": [
[
-144.28632812496124,
-52.37945741231982
],
[
@ajturner
ajturner / index.html
Last active June 23, 2017 01:50
Stackexchange question: Dynamic Scatterplot with Cedar https://gis.stackexchange.com/questions/244080/dynamic-scatterplot-with-cedar
<html>
<head>
<meta charset=utf-8 />
<title>Map with Cedar Plots</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<!-- Load D3 and vega -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vega/2.6.1/vega.min.js"></script>
@ajturner
ajturner / webmap.json
Created June 16, 2017 19:16
Public Schools
{
"item": {
"title": "New Map",
"snippet": "Public Schools",
"extent": [
[
-77.33654641145903,
38.78976428640877
],
[
@ajturner
ajturner / index.html
Last active June 16, 2017 19:30
Public Schools
<!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">