Instantly share code, notes, and snippets.

View GDBdomainsToXLSX.py
## Specify the File Geodatabase workspace
gdb = "C:\\Users\\XXXXXXXX\\Documents\\ArcGIS\\Projects\\XXXX.gdb"
## Get a list of domains
desc = arcpy.Describe(gdb)
domains = desc.domains
## Loop over the list of domains
for domain in domains:
## Create an object that represents the name of the Excel file to be created
View baltimore-bicycle-facilities-v4.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 2013-baltimore-dot-bicycle-parking.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View arcade-append.md

Arcade Appending

Why

These useful ArcGIS Arcade expressions are for appending values to simulate comma separated Survey123 entries. These particular expressions include an SQL statement to select from a free-text comment that needs to be converted to the Survey123-like select_multiple format.

The data includes roughly 600 entries prior to the addition of a select_multiple that aims to simplify data entry. While that change has been a dashing success, prior entries do not include the normalized data. These edits look for keywords in the comments and convert them to comma separated values.

Clearing

View index.html
<!DOCTYPE html>
<html>
<head>
<title>Foo</title>
<meta charset='utf-8' />
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' />
<style type='text/css'>
body {
font-family: 'Helvetica';
View Best-of-Canton-Neighbors.md

Best of Canton Neighbors

A collection of the top posts from Canton Neighbors, the community Facebook group for Canton, a neighborhood in Baltimore, Maryland. Italicized posts are no longer available.

2018

  1. Where's my table
  2. Hope she was worth it

2017

View outlook.txt
// MS Outlook HTML Tidy scrubbing
// by @talllguy
// 21 Jun 2017
// Instructions: save this file somewhere and run tidy -config <path>outlook.txt
word-2000: yes // for general removal of MS crap tags
bare: yes
clean: yes
drop-empty-paras: yes
drop-proprietary-attributes: yes
join-styles: yes
View keybase.md

Keybase proof

I hereby claim:

  • I am talllguy on github.
  • I am elliottplack (https://keybase.io/elliottplack) on keybase.
  • I have a public key whose fingerprint is 4128 24B4 0400 5D5A 4203 FCA3 2DA3 7B14 6A39 6C45

To claim this, I am signing this object:

View wetlandsmapcode.py
def Reclass(Class):
if (Class.startswith('PFO')):
return 'PFO'
elif (Class.startswith('PSS')):
return 'PSS'
elif (Class.startswith('PEM')):
return 'PEM'
elif (Class.startswith('PUB')):
return 'PUB'
elif (Class.startswith('PAB')):
View baltobikeshareosm.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.