Skip to content

Instantly share code, notes, and snippets.

View altwitt's full-sized avatar

Harrison Witt altwitt

  • Geospatial Developer
  • Memphis, TN
  • 03:06 (UTC -05:00)
View GitHub Profile
We can't make this file beautiful and searchable because it's too large.
County,City,State,Postal Code,Model Year,Make,Model,Electric Range,Vehicle Location
Suffolk,Suffolk,VA,23435,2018,TESLA,MODEL 3,215,POINT (-76.42443 36.8752)
Yakima,Yakima,WA,98908,2020,TESLA,MODEL 3,308,POINT (-120.56916 46.58514)
Yakima,Yakima,WA,98908,2021,AUDI,E-TRON,222,POINT (-120.56916 46.58514)
Danville,Danville,VA,24541,2019,TESLA,MODEL 3,220,POINT (-79.4172 36.58598)
Norfolk,Norfolk,VA,23518,2014,FORD,C-MAX,19,POINT (-76.21549 36.92478)
Thurston,Olympia,WA,98502,2015,NISSAN,LEAF,84,POINT (-122.92333 47.03779)
Thurston,Tenino,WA,98589,2013,CHEVROLET,VOLT,38,POINT (-122.85135 46.85752)
Snohomish,Bothell,WA,98021,2016,TESLA,MODEL S,210,POINT (-122.18384 47.8031)
King,Seattle,WA,98112,2018,NISSAN,LEAF,151,POINT (-122.30716 47.62687)
rank_2020 city state population_2020 land_area_sqmi pop_density_2020_sqmi latitude longitude
1 New York New York 8804190 300.5   29298  40°40′N 73°56′W
2 Los Angeles California 3898747 469.5   8304  34°01′N 118°25′W
3 Chicago Illinois 2746388 227.7   12061  41°50′N 87°41′W
4 Houston Texas 2304580 640.4   3599  29°47′N 95°23′W
5 Phoenix Arizona 1608139 518.0   3105  33°34′N 112°05′W
6 Philadelphia Pennsylvania 1603797 134.4   11933  40°00′N 75°08′W
7 San Antonio Texas 1434625 498.8   2876  29°28′N 98°31′W
8 San Diego California 1386932 325.9   4256  32°49′N 117°08′W
9 Dallas Texas 1304379 339.6   3841  32°47′N 96°46′W
@altwitt
altwitt / chatgpt_log.txt
Last active April 4, 2023 16:42
New Entry: Saturday 25 March 2023 17:52
Saturday 25 March 2023 17:45
MY QUESTION: what is the best method for me passing my gisci.org GISP exam in order to recieve my geographic information system professional accredidation
GIBBERTS RESPONSE: ?
The best method for passing the GISP exam is to study and prepare for the exam. You can find a variety of resources online to help you review the material and practice for the exam. Additionally, GISCI.org offers an online course and study guide to help you prepare for the exam. It is also recommended to take practice tests to become familiar with the format and content of the exam. Finally, make sure to take breaks and get plenty of rest before the exam.
Saturday 25 March 2023 17:52
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@altwitt
altwitt / multi.py
Last active January 22, 2023 23:41
from time import time
import os
import random
print(r"""
██ ██ ██ ██████ █████ ██████ ███████ ██████ ███ ██ ██ ██
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██ ██
███████ ██ ██ ███████ ██████ ███████ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██████ ██ ██ ██ ██ ███████ ██████ ██ ████ ██ ██
@altwitt
altwitt / best_regex
Created January 16, 2020 21:30
6 handy regex
# Finding sentences that contain a specific word
import re
def sentences_with_word(word, words):
p = re.compile('/[^.]* {} [^.]*\./gi'.format(word))
print(p.search(words))
s1 = '''
FROM fairest creatures we desire increase,
@altwitt
altwitt / w.sh
Created December 30, 2019 20:24
#!/usr/bin/env bash
watson config backend.url https://api.crick.io/watson
watson config backend.token vAFIrZ1AgfN-4ly-FyKdqEwKGiaYUVbrS_2yXhDsONl3XmjzmZFuhw==
watson sync
#!/usr/bin/env bash
# Install Node Version Manager
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
nvm install node
# https://www.marinetraffic.com/
#module import
import urllib.request
from bs4 import BeautifulSoup
import re
import pandas as pd
from datetime import datetime
import locale
locale.setlocale(locale.LC_ALL, 'en_US') #as we need to deal with names of monthes later on.
@altwitt
altwitt / arcgis_online_rss.py
Created December 13, 2019 20:37
ArcGIS Online Health Dashboard ArcGIS Online publishes our latest information on service availability in the table below. Check back here to get current status information, or subscribe to an RSS feed to be notified of interruptions to each individual service.
import requests
from bs4 import BeautifulSoup
base_page = "https://status.arcgis.com/rss/ago_{}.rss"
all_rss = "https://status.arcgis.com/rss/all.rss"
feed_name_list = ["ws",
"rest",
"fs",
"fpub",
"tile",