Skip to content

Instantly share code, notes, and snippets.

@agoddard
agoddard / ghetto_git_check.sh
Created December 3, 2014 05:10
poor mans git checker
#!/bin/sh
for i in $(ls -d */); do
cd ${i%%/};
if [ -d .git ]; then
modified=`git status --porcelain | grep M`
untracked=`git status --porcelain | grep "?"`
unpushed=`git status | grep ahead`
if ! [ -z "$modified" ]; then
echo "${i%%/} contains uncommitted changes"
fi
@agoddard
agoddard / test.kml
Created February 5, 2018 15:37
Empty KML
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>KML Export 2/5/2018 3:34:04 PM</name>
<Style id="style_emergency">
<IconStyle>
<colorMode>normal</colorMode>
<Icon>
<href>http://maps.google.com/mapfiles/kml/shapes/caution.png</href>
</Icon>
@agoddard
agoddard / working.kml
Created February 5, 2018 15:39
working kml
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>KML Export 2/5/2018 3:38:47 PM</name>
<Style id="style_emergency">
<IconStyle>
<colorMode>normal</colorMode>
<Icon>
<href>http://maps.google.com/mapfiles/kml/shapes/caution.png</href>
</Icon>
@agoddard
agoddard / index.html
Created September 21, 2019 07:47
crossing
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Add a GeoJSON line</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.45.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.45.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }