Skip to content

Instantly share code, notes, and snippets.

View HaydenElza's full-sized avatar

Hayden Elza HaydenElza

View GitHub Profile
@HaydenElza
HaydenElza / feature_class_to_postgres_v3.py
Created February 13, 2019 21:04
Load a spatial dataset from feature class to a table in postgres.
# -*- coding: utf-8 -*-
#------------------------------------------------------------------------------
# feature_class_to_postgres_v3.py
# Load county dataset from feature class to a table in postgres.
# Hayden Elza ([email protected])
# Created: 2018-08-09
# Modified: 2018-08-20
#------------------------------------------------------------------------------
@HaydenElza
HaydenElza / layers.html
Last active September 9, 2017 21:49
Format GeoServer getCapabilities into a table with layers and download links.
<html>
<head>
<title>Coastal Data Access Matrix</title>
<style>
.Layers-Table {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: normal;
border-left: 1px solid black;
border-bottom: 1px solid black;
@HaydenElza
HaydenElza / AutoClicker.sh
Created June 15, 2015 03:25
Auto-Clicker using xdotool on linux
#!/bin/bash
COUNTER=0
while [ $COUNTER -lt 10000 ]; do
xdotool click 1
sleep 0.001s
echo The counter is $COUNTER
let COUNTER=COUNTER+1
done