Skip to content

Instantly share code, notes, and snippets.

View jonahadkins's full-sized avatar
🌎
hi!

Jonah Adkins jonahadkins

🌎
hi!
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonahadkins
jonahadkins / index.html
Last active January 24, 2020 04:43
projection cycler
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
background: #fcfcfa;
height: 500px;
position: relative;
width: 960px;
}
@jonahadkins
jonahadkins / show_related_records.md
Last active March 22, 2023 21:10
Esri Arcade Labeling Expression To Show Related Records
@jonahadkins
jonahadkins / index.html
Created December 12, 2018 11:58
CMP_TTI_and_PTI_Intersections
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.51.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.51.0/mapbox-gl.css' rel='stylesheet' />
<style>

Esri Arcade Labeling Expression

When today's date is 12/24/36 months from attribute date, label the date with green/yellow/red.

when (
(DateDiff(Today(), $feature.date, 'months') <= 12),
'<CLR green = "255">' + TEXT($feature.date, 'D MMM YYYY') +'</CLR>',
(DateDiff(Today(), $feature.date, 'months') <= 24) ,
'' + TEXT($feature.date, 'D MMM YYYY') +'',
@jonahadkins
jonahadkins / index.html
Created March 13, 2018 18:31
test for new orleans data
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>test</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.1/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.1/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }

24 : 70.53107625
23 : 141.0621525
22 : 282.124305
21 : 564.24861
20 : 1128.497220
19 : 2256.994440
18 : 4513.988880
17 : 9027.977761
16 : 18055.955520
15 : 36111.911040

col a format a15 heading 'snapshot|date'
col b format a25 heading 'table|name'
col c format 999,999,999 'space|used|total'
select
to_char(begin_interval_time, 'yy/mm/dd hh24:mm') a,
object_name b,
space_used_total c
from
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonahadkins
jonahadkins / .block
Last active November 16, 2016 03:54 — forked from mbostock/.block
Waterman Butterfly
license: gpl-3.0